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?

demandé il y a 2 ans333 vues
1 réponse
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
répondu il y a 2 ans
  • 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?

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions