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?

已提問 2 年前檢視次數 334 次
1 個回答
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
專家
已回答 2 年前
  • 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?

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南