apollo icon indicating copy to clipboard operation
apollo copied to clipboard

"Rosbag command not found" error

Open Iali99 opened this issue 7 years ago • 7 comments

I have successfully built apollo 3.0. I am also able to launch Dreamview. But when I try to use the rosbag play command to play the rosbag file, it gives the error : "rosbag : command not found" . I have searched for solutions in the issues section. I found out that ros is not installed after building apollo. There is no ros directory inside " /apollo/bazel-apollo/external/ " . Can you please help me with this?

Iali99 avatar Jan 10 '19 05:01 Iali99

source /apollo/scripts/apollo_bash.sh

KitFung avatar Jan 10 '19 06:01 KitFung

I have tried that. It is not working. As I said, there is no ros folder anywhere in apollo directory.

Iali99 avatar Jan 10 '19 06:01 Iali99

Is this folder /home/tmp/ros/ exist?

KitFung avatar Jan 10 '19 06:01 KitFung

There should be ROS support on the 3.0 branch. And we have updated the demo docs for master (apollo 3.5) recently. Please try again with the most recent code if you are working on the master branch.

HongyiSun avatar Jan 10 '19 07:01 HongyiSun

I have built the latest code. It has ros folder. But the error continues. There is only one command "rosbag_to_record". There is rosbag file in /apollo/bazel-apollo/external/ros/bin . I tried using "source /apollo/scripts/apollo_base.sh" but it doesnot work

Iali99 avatar Jan 10 '19 13:01 Iali99

In the latest master branch, with the introduction of Cyber RT, there should be no longer use of ROS. And there is a "rosbag_to_record" command for user to convert rosbag to record files. Please provide more details about why you are using rosbag (maybe where the docs were not updated), or how we can reproduce your issues. Thank you!

HongyiSun avatar Jan 10 '19 17:01 HongyiSun

I was just following the doc. So I wanted to use rosbag. Now I have run the demo successfully using the .record file given. Thanks for the help.

Iali99 avatar Jan 10 '19 17:01 Iali99