apollo icon indicating copy to clipboard operation
apollo copied to clipboard

关于apollo工程中的ros问题

Open ahuer2435 opened this issue 9 years ago • 11 comments

apollo工程中,docker环境下的ros是否已经包含了apollo-platform?如果包含了,为啥没有在third_party目录下看到ros_x86_64目录,如何验证是否包含了?

ahuer2435 avatar Sep 19 '17 01:09 ahuer2435

please take a look at WORKSPACE file below. ROS release has been included in the build.

https://github.com/ApolloAuto/apollo/blob/master/WORKSPACE.in

Also, for release docker, it's part of the environment instead of the sub directory of apollo.

quning18 avatar Sep 19 '17 01:09 quning18

嗯,如何验证,就是有没有测试case,看下在包含apollo-platform环境和原生的测试对比下?

ahuer2435 avatar Sep 19 '17 02:09 ahuer2435

Apollo ROS is under /apollo/ros with release docker. You can test the apollo ros vs official ros using your own benchmarks.

quning18 avatar Sep 19 '17 03:09 quning18

怎么在docker内写一个使用apollo ros库的程序,然后用bazel 编译,给个简单的例子,非常感谢

wyqhnr avatar Oct 25 '17 08:10 wyqhnr

编译完apollo之后,ROS 环境变量都指向.cache 文件内部,如下所示 ROS_ROOT=/home/ubuntu/.cache/bazel/_bazel_ubuntu/540135163923dd7d5820f3ee4b306b32/external/ros/share/ros ROS_PACKAGE_PATH=/home/ubuntu/.cache/bazel/_bazel_ubuntu/540135163923dd7d5820f3ee4b306b32/external/ros/share:/home/ubuntu/.cache/bazel/_bazel_ubuntu/540135163923dd7d5820f3ee4b306b32/external/ros/stacks:/apollo/bazel-apollo/external/ros/share:/apollo/bazel-apollo/external/ros/stacks

那为什么还要下载apollo ros,然后拷贝到/apollo/third_party/ros_x86_64/这个目录下呢

wyqhnr avatar Oct 25 '17 08:10 wyqhnr

目前应该已经不需要下载到ros_x86_64了,你是看到那个 manual 还有提及这个吗?

quning18 avatar Oct 25 '17 18:10 quning18

https://github.com/ApolloAuto/apollo-platform/blob/master/README.md @quning78 这个链接中的“How to Install” 似乎有提到

ahuer2435 avatar Oct 26 '17 00:10 ahuer2435

这里可能写的是不太清楚,目前 Apollo 自己的 build 过程是可以自动下载 platform 也就是 ros 的 release package,

但是如果需要单独使用 ros release package 的,可以自行下载,然后 source 相关的script,但是具体位置其实不是很相关了。

Best wishes,

Ning Qu

On Wed, Oct 25, 2017 at 5:09 PM, ahuer2435 [email protected] wrote:

https://github.com/ApolloAuto/apollo-platform/blob/master/README.md @quning78 https://github.com/quning78 这个链接中的“How to Install” 似乎有提到

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ApolloAuto/apollo/issues/315#issuecomment-339511032, or mute the thread https://github.com/notifications/unsubscribe-auth/AIHPslx13dbCWbEKGWYMwTnCt7RegaYOks5sv83EgaJpZM4Pbv6r .

quning18 avatar Oct 26 '17 18:10 quning18

@wyqhnr One example for using bazel to compile module (in docker):

// lauch dev environment first ./docker/scripts/dev_start.sh ./docker/scripts/dev_into.sh

// compile from source code to bin file bazel build //module/prediction:prediction

// compile lib bazel build //modules/prediction:prediction_lib

Wish it helps.

zezhou avatar Oct 27 '17 06:10 zezhou

请问找到了在apollo docker中使用ros的demo了吗?

lxbeyond avatar Jan 16 '18 06:01 lxbeyond

Closed due to no response for a while, please reopen it if you still have questions. Thanks!

quning18 avatar Apr 12 '18 08:04 quning18