How to attach dynamic visual to moving model through Gazebo ROS plugin?
I am trying to implement brake lights on a URDF model using a Gazebo ROS plugin which utilizes Gazebo transport to publish a ~/visual message. The message works, and I can spawn a visual in the world, but the ".setparentname" tag appears to ignore anything placed inside, including fully scoped names of links (not ones with fixed joints) present in the model. As a result, the spawned visual is not connected to the model and remains static in the world. The Haptix and DRCSIM tutorials and source code provide some guidance, but I cannot find a complete solution. Adding a visual plugin inside the
Asked by V on 2017-06-27 01:58:29 UTC
Answers
if you're just trying to attach lights to link, there is the AttachLightPlugin.
If you want to attach visuals, try setting the parent id instead of the parent name and see if that works. The parent id will be the link's id; you can get it using Link::GetId()
Asked by iche033 on 2017-07-05 14:11:30 UTC
Comments
Thank you! I will try this!
Asked by V on 2017-07-22 13:06:31 UTC
Comments