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

Communicate between my python library and ros [closed]

asked 2016-02-23 03:56:23 -0500

swethmandava gravatar image

I have a python class called primitive_surfaces that uses the script called primitive_shapes.py to find waypoints. Initially, I had a main that would instantiate an object of primitive_surfaces with required arguments and print out the waypoints. I'm now planning to use this code and publish the variable waypoints using ROS. How can I communicate between non-ROS Python scripts and ROS?

Apologies if this question has been repeated many times, I'm fairly new to ROS and couldn't seem to find anything relevant. Thanks :)

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by swethmandava
close date 2016-12-14 10:54:28.745534

2 Answers

Sort by ยป oldest newest most voted
0

answered 2016-03-10 18:56:42 -0500

tfoote gravatar image

You can use rospy inside of any python script as long as you have setup your ROS environment first.

edit flag offensive delete link more
0

answered 2016-02-24 08:06:50 -0500

yasagitov gravatar image

You must use interprocess communication libraries. Use ZeroMQ library.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2016-02-23 03:56:23 -0500

Seen: 338 times

Last updated: Mar 10 '16