Skip to content

Creating a Python node in ROS

Nathan Collins edited this page Apr 28, 2018 · 3 revisions

Create the Package

catkin_create_pkg <node_name> <dependencies>
# for example
catkin_create_pkg relay_board rospy std_msgs bruin2_msgs

Write your Code

You'll want a package inside the src folder that contains a main.py. Note that the main.py must be marked executable and contain the #! line.

TODO

Clone this wiki locally