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 has been 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?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
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 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:secs
changes after each second andnsecs
also changes for each message, but by usingros_msg_parser
I can't get the updated time stamp. Could you please help?The text was updated successfully, but these errors were encountered: