Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 40

In Roscpp, can I access parameters from different nodes?

$
0
0
Example: I have always the same node type, lets say with a parameter named "shape" I make one node (node A) with shape = "square" I make a second node (node B) with shape = "circle" in the console if i did rosparam list i would see /nodeA/shape /nodeB/shape and if i did rosparam get /nodeA/shape i would see "Square", but is it possible in my test file, my cpp file, to use some form of get parameter when creating a node, so that I can see that node A shape is "Square"? pseudocode: if(&newNode/shape == &nodeA/shape) kill(newNode, SIGINT) Overall, i want to be able to test and see if a value of the parameter exists, and then if it exists, i will do a kill(pid, SIGINT). But i am having a hard time accessing the parameter value of the other nodes.

Viewing all articles
Browse latest Browse all 40

Trending Articles