0
$\begingroup$

Rosanswers logo

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.


Originally posted by Metalzero2 on ROS Answers with karma: 293 on 2015-06-24

Post score: 4

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

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.


Originally posted by Gary Servin with karma: 962 on 2015-06-24

This answer was ACCEPTED on the original site

Post score: 4


Original comments

Comment by DamnItROS on 2015-11-01:
That's exactly what I'm looking for. Many Thanks.

Comment by 2ROS0 on 2017-05-03:
Link is broken, what was it linked to? @Gary Servin

Comment by Gary Servin on 2017-08-08:
Fixed the link

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.