当前位置:网站首页>ROS2放弃指南5:创建ros2的topic
ROS2放弃指南5:创建ros2的topic
2022-04-21 17:07:00 【陈傻鱼】
| 功能包类型 | 用法 |
|---|---|
| ament_python | 适用于python程序 |
| cmake | 适用于C++ |
| ament_cmake | 适用于C++程序,是cmake的增强版 |
| 功能包相关指令 | 含义 |
|---|---|
| create | 创建一个新的 ROS2 包 |
| executables | 输出包特定可执行文件的列表 |
| list | 输出可用包的列表 |
| prefix | 输出包的前缀路径 |
| xml | 输出包清单或特定标签的 XML |
ros2 pkg create <package-name> --build-type {
cmake,ament_cmake,ament_python} --dependencies <依赖名字>
ros2 pkg executables // 列出所有功能包的可执行文件
ros2 pkg executables turtlesim // 列出某个功能包的可执行文件
rosdep install --from-paths src --ignore-src -rosdistro=dashing -y
rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO
// 只编译一个包
colcon build --packages-select YOUR_PKG_NAME
// 不编译测试单元
colcon build --packages-select YOUR_PKG_NAME --cmake-args -DBUILD_TESTING=0
// 建立工作空间和功能包
mkdir -p ~/test-ros2-launch/src
cd ~/test-ros2-launch/src
ros2 pkg create fishbot_description --build-type ament_python
// 建立URDF文件
cd fishbot_description && mkdir urdf
cd urdf
touch fishbot_base.urdf
cd ../
mkdir launch
cd launch
touch display_rviz2.launch.py
colcon build
source install/setup.bash
ros2 launch fishbot_description display_rviz2.launch.py
版权声明
本文为[陈傻鱼]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_45113070/article/details/124321755
边栏推荐
- How to judge whether a binary differential equation is a total differential
- Quick MTF, lens image quality test application
- R language uses the select function in dplyr package to delete data columns in dataframe based on the index value of data columns
- 使用知行之桥EDI系统做压力测试时如何快速清除文件记录
- The R language uses the grepl function to check whether the substring exists in the specified string and the string matches. It is responsible for searching whether the given string object contains a
- 2022年北京购房攻略三 (政策篇)
- 一、数据库系列之数据库系统概述
- mysql创建数据库sql语句
- R语言使用plot函数可视化数据散点图,使用par函数中的bg参数自定义设置可视化图像线框内的背景色
- Simple application of thrift
猜你喜欢

. net treasure API: ihostedservice, background task execution

解读论文记录 指出经典的RMS证明过程小错误的一个论文的解读

Vitis HLS build project and generate IP core (vivado HLS)

Interpretation of a paper that points out the small errors in the classic RMS proof process

Database Principle -- library management system
![[an article helps you lay a good foundation for routing]](/img/3d/1c0329c39c0c5282db841db970a060.png)
[an article helps you lay a good foundation for routing]

338 leetcode isomorphic string

pytorch index_ add_ Usage introduction

Excel表格中重要的数据如何隐藏不显示

【一篇文章帮你打好路由基础】
随机推荐
Win10桥接网卡使得qemu虚拟机可以正常访问网络
824. 山羊拉丁文
Buuctf Web [WANGDING Cup 2018] Fakebook
SSH implementation of remote login server
What is the "responsibility" of fault determination?
【微服务】微服务安全 - 如何保护您的微服务基础架构?
Shell case series 5 Oracle detects whether there are invalid objects
MySQL: 1103 error solution
2022 new air outlet! The tide of it crowd research is coming!!!
用Jetson Nano 做一个环境气象站
LS - Al meaning of each field
mysql为数据库表起别名的注意事项
SSD_Resnet 飞机与油桶数据集实战
BUUCTF WEB [GXYCTF2019]BabyUpload
【一篇文章帮你打好路由基础】
mysql主键id自定义
1、 Overview of database system of database Series
mysql创建数据库sql语句
当你遇到技术难题之后的状态
Golang binary analysis and reverse