I used this tutorial to get me going http://gazebosim.org/tutorials?tut=guided_i5#TestthemessagepassingAPI.
It gave me enough information to create a gazebo model plugin, and a executable gazebo node that would use a gazebo transport node to publish commands to a Gazebo topic.
My problem is that my gazebo model plugin is unable to see when a message is sent to the gazebo topic ("/topic/a") even though I have a gazebo subscriber callback function for "/topic/a". To confirm that I was publishing and subscribing to the gazebo topic I opened a terminal and used the command
"gz topic -i /topic/a"
The response was
Type: gazebo.msgs.Vector3d
Publishers:
Same IP:43457
Subscribers:
Same IP:45557
They had the same IP but different ports. Is that normal? How do I get both gazebo nodes to look at the same Gazebo topic?
↧