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

Sending variables from one nodes to another

asked 2014-06-18 04:04:26 -0500

jashanvir gravatar image

Hello all ! I am using Hydro version of ROS. I have created a node in which I made a variable and store the value in it. Now I have to pass that variable value to another node. So that it can access it. Can any body tell me how I can do the above thing. I am working on python so it would be nice if anybody tells me in python Thanks Looking forward for answers !

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2014-06-18 04:50:03 -0500

BennyRe gravatar image

There are many ways how to pass data from one node to another.

You could publish your variable in a topic: Tutorial Understanding Topics

You could use a Setter like service: Tutorial Understanding Services

And some more advanced ways to do it.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-06-18 04:04:26 -0500

Seen: 1,311 times

Last updated: Jun 18 '14