Gazebo | Ignition | Community
Ask Your Question
1

How do I make the coffee cup appear?

asked 2012-09-25 19:54:33 -0500

Issac gravatar image

Here's a tutorial I went through today:

http://www.ros.org/wiki/simulator_gaz...

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.

edit retag flag offensive close merge delete

Comments

Check you ogre log file: ~/.gazebo/ogre.log. Look for error/Error.

nkoenig gravatar imagenkoenig ( 2012-10-02 10:51:48 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted
2

answered 2012-10-14 05:18:50 -0500

Stefan Kohlbrecher gravatar image

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.

edit flag offensive delete link more

Comments

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.

nkoenig gravatar imagenkoenig ( 2013-01-11 18:01:01 -0500 )edit
0

answered 2012-10-11 11:08:39 -0500

dcconner gravatar image

(Sorry not answer, but can't comment in reply to above comment) I have the same issue. Looking at ogre.log (grep "rror" ) I see the following messages:

OGRE EXCEPTION (7:InternalErrorException) Error linking GLSL Program Object: Fragment Info error C1106: overloaded function declaration "FFP_Construct" differs only in parameter qualifiers

I can access the RGB "navigation boxes", but the cup itself does not appear.

Running ROS Fuerte installation on Ubuntu 10.04

edit flag offensive delete link more
0

answered 2012-09-26 11:11:42 -0500

Zara gravatar image

Have you checked that the cup's material is supported by this version of Gazebo? I am not sure if this will solve the problem.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-09-25 19:54:33 -0500

Seen: 2,114 times

Last updated: Oct 14 '12