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

Make nodes without making a package

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

Metalzero2 gravatar image

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

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
4

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

updated 2017-08-08 08:29:02 -0600

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

Comments

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

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

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

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

Fixed the link

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

Question Tools

1 follower

Stats

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

Seen: 1,192 times

Last updated: Aug 08 '17