0
$\begingroup$

Gazebo Answers logo

Here's a tutorial I went through today:

http://www.ros.org/wiki/simulator_gazebo/Tutorials/SpawningObjectInSimulation

Everything works except the last bit where you add a coffee cup to the scene. The cup shows up in the scene graph, but it's invisible in the 3D view.


Original comments

Comment by nkoenig on 2012-10-02:
Check you ogre log file: ~/.gazebo/ogre.log. Look for error/Error.


Originally posted by Issac on Gazebo Answers with karma: 11 on 2012-09-25

Post score: 1


---JSON_START_ROS2022_SE_MIGRATION {'name': 'Issac', 'score': 1, 'timestamp': '2012-09-25 19:54:33.067230 UTC', 'user_id': 29}---

$\endgroup$
3
  • $\begingroup$ please add any generated error messages to your post ... format the messages as code $\endgroup$
    – jsotola
    Oct 21, 2022 at 15:47
  • $\begingroup$ why are you posting questions and answers that have been asked, and answered elsewhere? ... crossposting is frowned upon here $\endgroup$
    – jsotola
    Oct 21, 2022 at 15:52
  • 1
    $\begingroup$ @jsotola These are test posts of the API. We'll have more info soon. See robotics.meta.stackexchange.com/questions/1469/… $\endgroup$
    – Tully
    Oct 24, 2022 at 4:04

1 Answer 1

0
$\begingroup$

Gazebo Answers logo

It appears the coffee cup model uses the old gazebo (pre 1.0) model format and it appears the parser used in fuerte isn't able to understand the syntax of that anymore. The error messages by gazebo on spawning the model at least suggest the mesh definition cannot be read:

namespace error : Namespace prefix model on physical is not defined
<!-- The trimesh coffee cup --><model:physical name="coffee_cup"><body:trimesh n
                                                                ^
namespace error : Namespace prefix body on trimesh is not defined
h coffee cup --><model:physical name="coffee_cup"><body:trimesh name="cup1_body"
                                                                               ^
namespace error : Namespace prefix geom on trimesh is not defined
izz>0.01</izz><cx>0.0</cx><cy>0.1</cy><cz>0.0</cz><geom:trimesh name="cup1_geom"
                                                                               ^
namespace error : Namespace prefix model on physical is not defined
<!-- The trimesh coffee cup --><model:physical name="coffee_cup"><body:trimesh n
                                                                ^
namespace error : Namespace prefix body on trimesh is not defined
h coffee cup --><model:physical name="coffee_cup"><body:trimesh name="cup1_body"

A conversion to SDF would be needed to properly be able to spawn the model.

The differences are readily visible when comparing two simple models:

Coffee cup (not working in fuerte): Coffee cup

Coke can (working): Coke Can

There's quite a bit of non-working legacy launch files/models in the gazebo packages and outdated tutorials on ros.org and the described issues are an example of that. Any volunteers willing to improve the situation would be welcome I guess. For the moment, I added a disclaimer to the tutorial notifying readers that spawning the cup does not work in ROS versions more recent than electric.


Original comments

Comment by nkoenig on 2013-01-11:
ROS is not up to date with Gazebo. The tutorials on the ROS website should not be followed, nor should the Gazebo packages in ROS.


Originally posted by Stefan Kohlbrecher with karma: 473 on 2012-10-14

This answer was ACCEPTED on the original site Post score: 2


---JSON_START_ROS2022_SE_MIGRATION {'accepted': True, 'name': 'Stefan Kohlbrecher', 'score': 2, 'timestamp': '2012-10-14 05:18:50.010346 UTC', 'user_id': 9}---

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.