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 | Q&A answers.ros.org |
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.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2016-04-28 02:44:09 -0500
Seen: 96 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?