Skip to content

This is a ros template for creating a new ros node.

Notifications You must be signed in to change notification settings

CT-Hung/ros_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

ros_template

This is a template for ros.
First, create a package by yourself.
And then follow following method.

Method 1.

There are python and cpp templates in catkin_ws folder.
Copy the file into your ros pkg and change the node name.

Method 2

$ cd autoCreateTemplate
$ mkdir build; cd build
$ cmake ../
$ make
add the bin PATH into your .bashrc file.

Create cpp template

$ createRosCppTemplate <arthor_name> <node_name> <pkg_name>
This will create three folders and four files:

  1. launch/param_<node_name>.launch
  2. config/<node_name>.yaml
  3. src/<node_name>.cpp
  4. src/<node_name>.h

Add node into CMakeLists.txt.

Create python template

$ createRosPyTemplate <arthor_name> <node_name> <pkg_name>
This will create three folders and three files:

  1. launch/param_<node_name>.launch
  2. config/<node_name>.yaml
  3. src/<node_name>.py

$ chmod +x src/<node_name>.py

About

This is a ros template for creating a new ros node.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published