You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 22, 2024. It is now read-only.
I want to record all the data from /gripper/joint_states topic. But, the value for /gripper/joint_states/header/stamp key does not change and does not have nsecs. I am using this to print the data:
printf("--------- %s ----------\n", topic_name.c_str());
for (auto it : deserialized_msg->renamed_vals)
{
const std::string& key = it.first;
double value = it.second;
std::cout << key << " = " << value << std::endl;
}
for (auto it : deserialized_msg->flat_msg.name)
{
const std::string& key = it.first.toStdString();
const std::string& value = it.second;
std::cout << key << " = " << value << std::endl;
}
secs changes after each second and nsecs also changes for each message, but by using ros_msg_parser I can't get the updated time stamp. Could you please help?
Hi,
I want to record all the data from
/gripper/joint_statestopic. But, the value for/gripper/joint_states/header/stampkey does not change and does not havensecs. I am using this to print the data:The output is:
But, when I run
rostopic echo /gripper/joint_states, I get this output:secschanges after each second andnsecsalso changes for each message, but by usingros_msg_parserI can't get the updated time stamp. Could you please help?