美文网首页
Fast-rtps 编译和调试

Fast-rtps 编译和调试

作者: Barry_Xu | 来源:发表于2019-12-02 14:52 被阅读0次

Refer to Colcon installation section in https://github.com/eProsima/Fast-RTPS to download Fast-rtps.

  • Colcon installation

colcon is a command line tool to build sets of software packages.
This section explains to use it to compile easily Fast-RTPS and its dependencies.
First install ROS2 development tools (colcon and vcstool):

pip install -U colcon-common-extensions vcstool

Download the repos file that will be used to download Fast RTPS and its dependencies:

$ wget https://raw.githubusercontent.com/eProsima/Fast-RTPS/master/fastrtps.repos
$ mkdir src
$ vcs import src < fastrtps.repos

Finally, use colcon to compile all software:

$ colcon build

If you want to build for debug, please build by below command

$ colcon build --cmake-args -DCOMPILE_EXAMPLES=ON -DCMAKE_CXX_FLAGS='-o0 -ggdb'

-DCOMPILE_EXAMPLES=ON => Build example
-DCMAKE_CXX_FLAGS='-o0 -ggdb' => Not optimize and with debug information

相关文章

网友评论

      本文标题:Fast-rtps 编译和调试

      本文链接:https://www.haomeiwen.com/subject/guffgctx.html