Does the marker example work with Gazebo 8?
I have gazebo 8.1.1 and it's generally working, but I can't get markers to display. I tried the stand-alone marker example (https://bitbucket.org/osrf/gazebo/src...) and while it runs happily there's nothing to see in gzclient... Does this example actually work or is something missing?
Gazebo output:
> gazebo --verbose
Gazebo multi-robot simulator, version 9.0.1
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org
[Msg] Waiting for master.
Gazebo multi-robot simulator, version 9.0.1
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org
[Msg] Waiting for master.
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 192.168.0.46
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 192.168.0.46
[Err] [InsertModelWidget.cc:336] Missing model.config for model "/home/tve/src/gazebo-wave/marker-test"
[Err] [InsertModelWidget.cc:336] Missing model.config for model "/home/tve/src/gazebo-wave/media"
[Err] [InsertModelWidget.cc:336] Missing model.config for model "/home/tve/src/gazebo-wave/models"
[Err] [InsertModelWidget.cc:336] Missing model.config for model "/home/tve/src/gazebo-wave/plugins"
[Err] [InsertModelWidget.cc:336] Missing model.config for model "/home/tve/src/gazebo-wave/worlds"
[Wrn] [Publisher.cc:141] Queue limit reached for topic /gazebo/default/user_camera/pose, deleting message. This warning is printed only once.
^C
>
All I see is the ground plane, grid, and the 3 axes.
Marker command output:
> ./marker
Spawning a sphere at the origin
Moving the sphere to x=0, y=0, z=1
Shrinking the sphere
Changing the sphere to red
Adding a green box
Change the green box to a cylinder
Adding a line between the sphere and cylinder
Adding a square around the origin
Adding 100 points inside the square
Adding HELLO at 0, 0, 2
Adding a semi-circular triangle fan
Adding two triangles using a triangle list
Adding a rectangular triangle strip
Delete all the markers
I ran some service & topic troubleshooting commands:
> ign topic -l
/introspection/mfznxa/items_update
> ign service -l
/introspection/mfznxa/filter_new
/introspection/mfznxa/filter_remove
/introspection/mfznxa/filter_update
/introspection/mfznxa/items
/physics/info/plugin
> gz marker
Error: /marker service not present on network.
> gz topic -l
/gazebo/ocean_waves/atmosphere
/gazebo/ocean_waves/box/hull/wrench
/gazebo/ocean_waves/diagnostics
/gazebo/ocean_waves/factory
/gazebo/ocean_waves/factory/light
/gazebo/ocean_waves/gui
/gazebo/ocean_waves/gzclient_camera/cmd
/gazebo/ocean_waves/joint
/gazebo/ocean_waves/light/modify
/gazebo/ocean_waves/log/control
/gazebo/ocean_waves/log/status
/gazebo/ocean_waves/model/info
/gazebo/ocean_waves/model/modify
/gazebo/ocean_waves/physics
/gazebo/ocean_waves/physics/contacts
/gazebo/ocean_waves/playback_control
/gazebo/ocean_waves/pose/info
/gazebo/ocean_waves/pose/local/info
/gazebo/ocean_waves/pose/modify
/gazebo/ocean_waves/request
/gazebo/ocean_waves/response
/gazebo/ocean_waves/roads
/gazebo/ocean_waves/scene
/gazebo/ocean_waves/selection
/gazebo/ocean_waves/sensor
/gazebo/ocean_waves/skeleton_pose/info
/gazebo/ocean_waves/sky
/gazebo/ocean_waves/undo_redo
/gazebo/ocean_waves/user_camera/joy_pose
/gazebo/ocean_waves/user_camera/joy_twist
/gazebo/ocean_waves/user_camera/pose
/gazebo/ocean_waves/user_cmd
/gazebo/ocean_waves/user_cmd_stats
/gazebo/ocean_waves/visual
/gazebo ...
I just tried it and it works for me. Does Gazebo print any errors if you run in verbose mode?
Rats, I was fearing that. I tried the precompiled 8.1.1 ubuntu binaries and I just installed gazebo from source. I'm adding the output to the original post 'cause comments are limited. The one odd thing in my set-up is that while I have ubuntu 16.04 I have to run kernel 3.8. I had to fix-up ign-transport not to try SO_REUSEPORT on the socket 'cause that got introduced in kernel 3.9. Sadly I can't run a newer kernel.
It looks like you're running Gazebo 9 (unreleased development version). I haven't checked whether it works there...
If you have any tips on how to troubleshoot this, that would be appreciated. (I first tried with the 8.1.1 binary install, but hit the SO_REUSEPORT issue, although everything else worked. I then compiled from source to make sure it didn't have to do with that issue and got the same results.)
When you start Gazebo and then do `ign service -l`, do you see `/marker` in the list?
It returns without printing anything. No list at all. That can't be good...
Mysterious... I'd expect at least some error about not initializing the MarkerManager or failing to advertise the service
Where can I log messages? It's not clear to me how the communication architecture works, e.g. who really subscribes where, etc. Are there #defines or printf's I can insert in various places to see what is happening / not happening? Some broad pointers into code would help....
Not sure I understand what you're asking for, are you talking about debugging Gazebo's source code?
I guess you could call it that way. Somehow the marker messages are not making it or getting ignored. I'd like to effectively trace through the gazebo (and I suppose ignition transport) code to see where they get lost...