Ask Your Question
-1

I have a python program. How can I integrate ROS data in it?

asked 2013-03-20 00:39:26 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi,

I have a python program running perfectly. Now I need some data in the program which is being published on a rostopic. In the ros environment, I know I can get that data using rostopic echo, or save it in a text file.

Can I add something in my python program that it collects data on a ros topic and use it? All I want is that everytime my program runs, there is a new data it collects from rostopic and does the operation on it.

Right now my program is using a dummy data and I urgently need to replace it with actual data being published over a rostopic.

urgent, please.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
4

answered 2013-03-20 03:59:36 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

If this is truly urgent, you should consider reading the basic ROS tutorials.

You will probably find Writing a Publisher and Subscriber in Python helpful.

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-03-20 00:39:26 -0500

Seen: 167 times

Last updated: Mar 20 '13