ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Make nodes without making a package

asked 2015-06-24 16:46:54 -0500

Metalzero2 gravatar image

updated 2017-05-03 16:09:45 -0500

2ROS0 gravatar image

Simple question. Can I create a node (in C++ or Python) without the need to make a whole package? It may be a really dumb question but was really curious.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-06-24 17:33:27 -0500

updated 2017-08-08 08:29:02 -0500

You can do it, but it is very impractical.

Take a look at this tutorial for a cpp example. Also, for python you can just create a .py file, import rospy, do your ROS stuff and run it. But watch out for dependency issues.

edit flag offensive delete link more


That's exactly what I'm looking for. Many Thanks.

DamnItROS gravatar image DamnItROS  ( 2015-11-01 12:30:45 -0500 )edit

Link is broken, what was it linked to? @Gary Servin

2ROS0 gravatar image 2ROS0  ( 2017-05-03 16:10:28 -0500 )edit

Fixed the link

Gary Servin gravatar image Gary Servin  ( 2017-08-08 08:29:15 -0500 )edit

Question Tools

1 follower


Asked: 2015-06-24 16:46:54 -0500

Seen: 1,153 times

Last updated: Aug 08 '17