ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Your code probably looks like :
std_msgs::UInt64 int_a;
volatile long unsigned int_b;
int_a = int_b;
But if you look at the message definition you'll see that there is a field data
, so you have to use it to set the message value :
std_msgs::UInt64 int_a;
volatile long unsigned int int_b;
int_a.data = int_b;