Ask Your Question
1

C++ script in Python

asked 2013-05-26 20:55:40 -0500

SuperRedRobin92 gravatar image

updated 2013-05-27 01:31:31 -0500

I'm relatively new to the ros system.. I'm trying to install the sick_tim3xx-groovy package on my ros system but the package is written in C++ whereas my system is in Python.

Is there anyway to install the package without re-writting it or am I fresh outta luck?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
4

answered 2013-05-27 01:36:58 -0500

Hi @SuperRedRobin92,

mixing nodes written in Python and nodes written in C++ is no problem in ROS, since each node is a separate process that communicates with other nodes over network messages. Simply follow the instructions on the sick_tim3xx wiki page; the driver should publish sensor_msgs/LaserScan messages on the /scan topic. Simply subscribe to the /scan topic from your Python node and do whatever you want to do with the messages you get.

If you have any further questions, please comment on this answer or open a new question.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-05-26 20:55:40 -0500

Seen: 105 times

Last updated: May 27 '13