Gazebo stops subscribing to a topic when I run gzclient

asked 2022-06-03 03:22:07 -0500

I'm working with ROS1, Docker and Gazebo. When I run the robotic application and the simulation application using docker run and I enter in the container images, using the command

$ rostopic list

I can see that the topic /cmd_vel appears in both the images, and when I retrieve the information using

$ rostopic info cmd_vel

I obtain:

Type: geometry_msgs/Twist


Subscribers: None


Type: geometry_msgs/Twist

Publishers: None


for the robotapp and the simapp respectively. The point is that, when inside the simapp image, I run the command

$ rosrun gazebo_ros gzclient

I obtain the following output:

the robot stands still inside the Gazebo GUI (instead rotating around the z axis with an angular velocity of 0.1 rad/s) and the /cmd_vel topic disappears from the ones available in the simapp image (together with others).

Do you know what could be the cause of this error?

edit retag flag offensive close merge delete