No rosbag command
Hi how can i get the rosbag command?
Any context about your current env? Which way do you choose to run Apollo? The possible ways to run Apollo can be found at https://github.com/ApolloAuto/apollo/blob/master/FAQ.md
You probably have to install rosbag by yourself for example in my ubuntu "sudo apt install python-rosbag"
rosbag is available as part of the Docker environment -- you don't need to install it yourself if you use the docker environment. Make sure you are running rosbag command within the docker environment.
@wadewang6 I have met the same problem and I solved it by following commands:
source /apollo/bazel-apollo/external/ros/setup.bash
which via https://github.com/ApolloAuto/apollo/issues/80
I was having the same issue and @zezhou 's answer worked just fine for me.
A better solution is to source /apollo/scripts/apollo_base.sh, which actually should have been run once when you enter the container. But there is no harm to do it again by hand, if you cannot find ros.