ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Hey,
The code you provided doesn't work, because you miss the comma after first String. Other than that it's completely fine.
print("I am accessing data.data", data.data) # trying to access data.data
Simpliest solution to store the data for later would be to use global variables. It's probably not very elegant way to do things, but should work fine in less complicated applications.