apollo icon indicating copy to clipboard operation
apollo copied to clipboard

[need help] "rosbag" is not found after building the software

Open ironsuperdev opened this issue 8 years ago • 4 comments

After building the apollo software in docker successfully, I ran

bash scripts/bootstrap.sh I can get dreamview in browser started. But if I insert

root@in_dev_docker:/apollo# rosbag play demo_1.5.bag --loop
bash: rosbag: command not found

Did I do something wrong? Thanks

ironsuperdev avatar Aug 07 '18 01:08 ironsuperdev

Hi,ironsuperdev. I am wondering why you are running container as a root user, that's not correct firstly. When execture dev_start.sh and dev_into.sh, do not add sudo parameter. The user in container should be the one that you use on your PC, pay attention to it. Below is a way to check where rosbag is. Normally, rosbag is in directory /home/tmp/ros/bin/, this directory and rosbag truely exist without any doubts, but you system environment PATH may not contain /home/tmp/ros/bin/ when running as root. Shift to normal user, check PATH again, it should container /home/tmp/ros/bin/ and then that's right.

use which rosbag to see where it is. use echo $PATH to show the value of PATH.

DongAi avatar Aug 14 '18 01:08 DongAi

There is a similar issue #4468 that may helpful.

PS:It would be a good practice to search existing issues before opening a new one :-)

zhxt avatar Aug 14 '18 04:08 zhxt

@ironsuperdev before run ROSBAG,you should run "source /apollo/scripts/apollo_base.sh“to add ros path.Then rosplay will be worked.Or you can "cd /home/tmp/ros/bin/",then you can find the executable file rosbag

whuzxy avatar Aug 30 '18 08:08 whuzxy

Closing this issue as it is similar to an existing issue. If you still have questions. Feel free to reopen this issue. Thanks!

natashadsouza avatar Apr 27 '19 00:04 natashadsouza