command " rosbag " not fonud

https://github.com/ApolloAuto/apollo/issues/181

1、If using dev docker env, you need run apollo.sh build once to pull ros dependency. logout from docker and docker/scripts/dev_into.sh again. It will setup the ROS env for you.

2、do you logout from docker after apollo.sh build? No need to setup apollo-platform. apollo.sh automatically pulls the dependency.

3、type exit and press enter inside docker terminal

4、Does apollo.sh build work for you? If so, you can check if the ros dependency exists by ls -l /apollo/bazel-apollo/external/ros/setup.bash

5、It indicates your env has downloaded ros dependency. manually source /apollo/bazel-apollo/external/ros/setup.bash and rosbag should work for you. Generally, dev_into.sh will source ros setup.bash for you.

猜你喜欢

转载自www.cnblogs.com/qiuheng/p/9144957.html