/ros2-starter

「ROS2ではじめよう次世代ロボットプログラミング」の練習

Primary LanguageC++

ROS2 Starter

Prerequirements

  • Ubuntu 18.04
  • build-essential
  • cmake
  • git
  • wget
$ sudo apt update
$ sudo apt install -y build-essential cmake git wget

Install ROS2

$ ./install.sh

Build

$ rosdep install --from-paths src --ignore-src -r -y
$ colcon build

Run

$ . ./install/setup.bash
$ ros2 launch hello_world talker_listener.launch.py

References

# Examples
$ ros2 package create hello_world
$ ros2 run
$ ros2 topic
# Examples
$ colcon build
$ colcon test