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

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

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

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 -0600

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

Question Tools

Stats

Asked: 2013-03-20 00:39:26 -0600

Seen: 300 times

Last updated: Mar 20 '13