use topic's variable
hi, I want to use the variable which I subscribe on my code program. what can i do please?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
hi, I want to use the variable which I subscribe on my code program. what can i do please?
For more details about the type itself check this
In your case, variable has the type std_msgs::Float64
. variable.data
would be just a double. declare x as double.
Asked: 2016-04-28 02:44:09 -0600
Seen: 137 times
Last updated: Apr 29 '16
What do you mean exactly? From what you say, it seems that you must read again the tutorials
i subscribe to a std_msgs/Float64 variable all is ok. now, i want to use this variable on my code like x = this variable, but i don't know how to convert it. have you any solution?