Skip to content

sze-info/ros2_cpp_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ros2_cpp_template package

ROS 2 C++ package. Static Badge

Packages and build

It is assumed that the workspace is ~/ros2_ws/.

Clone the packages

cd ~/ros2_ws/src
git clone https://github.com/sze-info/ros2_cpp_template

Build ROS 2 packages

cd ~/ros2_ws
colcon build --packages-select ros2_cpp_template --symlink-install
Don't forget to source before ROS commands.
source ~/ros2_ws/install/setup.bash
ros2 launch ros2_cpp_template launch_example1.launch.py

Delete this part if you are using it as a template

ROS 2 pacage template, to get started, use template by clicking on the Green button labeled Use this template / Create new repository.

Let's assume

  • your Github username is mycoolusername
  • your ROS 2 repo shold be cool_ros2_package

Replace everything in the cloned repo:

  • ros2_cpp_template >> cool_ros2_package (the folder was already renamed after Use this template)
  • sze-info >> mycoolusername
  • find all todo strings and fill the blanks

The easiest way is VS code:

Now colcon build your ROS 2 package and you can start wokring.

About

ROS 2 C++ template

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •