waitForService: Service /gazebo/set_physics_properties has not been advertised, waiting... (AWS)

asked 2022-06-02 05:16:16 -0500

I have containerized both the robotic application and simulation application and then I have runned them both with the following commands:

$ docker run -it -e DISPLAY -v /tmp/.X11-unix/:/tmp/.X11-unix/ -u robomaker -e ROBOMAKER_GAZEBO_MASTER_URI=http://localhost:5555 -e ROBOMAKER_ROS_MASTER_URI=http://localhost:11311 \robomaker-helloworld-robot-app:latest roslaunch hello_world_robot rotate.launch

and

$ export DISPLAY=:0

$ xhost +

$ docker run -it -e DISPLAY -v /tmp/.X11-unix/:/tmp/.X11-unix/ -u robomaker -e ROBOMAKER_GAZEBO_MASTER_URI=http://localhost:5555 -e ROBOMAKER_ROS_MASTER_URI=http://localhost:11311 \robomaker-helloworld-sim-app:latest roslaunch hello_world_simulation empty_world.launch

for the robot app and sim app respectively. After this, I entered inside the container of the sim app and runned the following commands:

$ source /opt/ros/melodic/setup.bash

$ source /usr/share/gazebo-9/setup.sh

$ rosrun gazebo_ros gzclient

The Gazebo GUI opens inside the Virtual Desktop (I'm using AWS RoboMaker) but the robot stands still instead rotating around the z axis with angular velocity 0.1 rad/s (as it is supposed to do). I obtain the following message:

[ INFO] [1654096062.809673647]: Finished loading Gazebo ROS API Plugin.

[ INFO] [1654096062.821667855]: waitForService: Service /gazebo/set_physics_properties has not been advertised, waiting...

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

edit retag flag offensive close merge delete