bash: rosrun: command not found RoboMaker

0

I'm doing the Hello World tutorial in RoboMaker and I want to visualize my simulation application in Gazebo, and after having runned both the robot application and the simulation application I have typed the following commands:

$ export DISPLAY=:0

$ xhost +

$ docker container ls

$ docker exec -it elegant_ardinghelli bash

$ rosrun gazebo_ros gzclient

where "elegant_ardinghelli" is the container name that contains the docker image of the simulation application, but when I run the last command the following error pops up: "bash: rosrun: command not found".

Do you know what could be the source of the error?

asked 2 years ago304 views
1 Answer
1

It could be you didn't source the setup.bash file. Double check that you have a simulation-entrypoint.sh or equivalent file that sources setup.bash and that the file is copied in the Dockerfile for the simulation application. For more information, see Creating an image for the simulation application in the documentation.

AWS
EXPERT
answered 2 years ago
  • Thank you very much! I did as the guide says, make the folders with the Dockerfiles and the entrypoints, yet I obtain the same result. I have installed rosbash to have rosrun and rospack-tools to have rospack, but know the problem is "rospack Error: package 'gazebo_ros' not found". Can it due to some permission problems?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions