Running a sample application with ROS Melodic and Gazebo 9

1

I am following this tutorial in the RoboMaker Developer Guide. After building the base image, the robot image and the simulation one, I have runned the robot application with the following command:

$ 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
helloworldsampleapprosmelodicgazebo9robotapp:latest

and the simulation application with this other:

$ 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
helloworldsampleapprosmelodicgazebo9simapp:latest

In order to visualize the simulation application in Gazebo9 I have entered into the simapp image and run the gazebo client with the following commands:

$ docker exec -it bold_babbage bash

$ cd /home/robomaker/workspace/aws-robomaker-sample-application-helloworld-ros1/simulation_ws

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

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

$ source ./install/setup.sh

$ rosrun gazebo_ros gzclient

The Gazebo GUI opens inside the Virtual Desktop but the robot stands still instead rotating around the z axis with angular velocity 0.1 rad/s. I obtain the following messagge:

[[ 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?

질문됨 2년 전157회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠