ROS2 - stereoboy/Study GitHub Wiki
References
Offical Examples
ros2 action send_goal --feedback fibonacci example_interfaces/action/Fibonacci "{order: 10}"
ros2 run examples_rclpy_minimal_action_server server
ROS Industrial
Youtube 강좌
Implementation Code
ROS2 Action
- ROS2 Python Action API Reference
send_goal
Command Tool Source
- ROS2 Action Demos
Tutorials
Gazebo
Colcon
Tips
rosdep install -i --from-path src --rosdistro foxy -y
colcon build --symlink-install
colcon build --symlink-install --packages-select
rqt_graph
ros2 topic list
ros2 topic info /cmd_vel
ros2 interface show geometry_msgs/Twist
ros2 pkg list // show installed packages
ros2 pkg executables // show executables in installed packages
ros2 pkg prefix // show installed directory
a-list-of-robots-running-on-ros2
ros2_control
UR3
example for humble
rosdep update
rosdep install --ignore-src --from-paths src -y
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release
source install/setup.bash
ros2 launch ur_description view_ur.launch.py ur_type:=ur5e
UR3
example for foxy
cd Universal_Robots_ROS2_Driver
git checkout foxy
cd ../..
rosdep update && rosdep install --ignore-src --from-paths src -y
apt-get install ros-foxy-joint-state-publisher-gui //missing ros package
colcon build --symlink-install
source install/setup.bash
ros2 launch ur_description view_ur.launch.py ur_type:=ur5e
turtlebot3_navigation2
example for foxy
$ cd ~/turtlebot3_ws/src/
$ git clone -b foxy-devel https://github.com/ROBOTIS-GIT/turtlebot3_simulations.git
$ cd ~/turtlebot3_ws && colcon build --symlink-install
export TURTLEBOT3_MODEL=burger
source ./install/setup.bash
ros2 launch turtlebot3_gazebo turtlebot3_world.launch.py
export TURTLEBOT3_MODEL=burger
source ./install/setup.bash
ros2 launch turtlebot3_navigation2 navigation2.launch.py use_sim_time:=True map:=map/map.yaml
export TURTLEBOT3_MODEL=burger
source ./install/setup.bash
ros2 run turtlebot3_teleop teleop_keyboard
ros2 node info /rviz2 --no-daemon
ros2 action info /navigate_to_pose -v
ros2 interface show nav2_msgs/action/NavigateToPose
ros2 action send_goal --feedback /navigate_to_pose nav2_msgs/action/NavigateToPose "{pose: {header:{frame_id: 'map',}, pose: {position: {x: 2.0, y: 0.0}}}}"
ros2 doctor --report
Utilities
ros2 run rqt_console rqt_console // logging only
rqt // all rqt tools
Build Custom MSG
Troubleshooting