ros1 ros2 使用时的一些差异

ROS1 ROS2 使用时的一些差异

编译

catkin 编译 —> colcon 编译

1
catkin_make --> colcon build
1
2
3
catkin_make -DCATKIN_WHITELIST_PACKAGES =“ package1; package2”
---
colcon build --packages-select PACKAGE_NAME1 PACKAGE_NAME2

source & .bashrc

devel —>install

1
2
3
echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
---
echo "source ~/colcon_ws/install/setup.bash" >> ~/.bashrc

terminal command

1
2
3
4
5
6
7
8
9
rosrun -->; ros2 run
rosnode -->; ros2 node
roslaunch -->; ros2 launch
rosparam -->; ros2 param
rospkg -->; ros2 pkg
rosservice -->; ros2 service
rossrv -->; ros2 srv
rostopic -->; ros2 topic
rosaction -->; ros2 action

rviz—>rviz2

  • 版权声明: 本博客所有文章除特别声明外,著作权归作者所有。转载请注明出处!
  • Copyrights © 2020-2023 cyg
  • 访问人数: | 浏览次数: