Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[moveit_ros.current_state_monitor]: Didn't receive robot state (joint angles) with recent timestamp within 10.000000 seconds. #2906

Open
Divyam-uga opened this issue Jul 12, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Divyam-uga
Copy link

Divyam-uga commented Jul 12, 2024

Hello Everyone,

@peterdavidfagan I have set up a Gazebo simulation with 2 UR manipulators and I'm attempting to control one UR robot using moveit_py. I've followed the necessary configuration steps from "moveit2_tutorials", and I am also setting 'use_sim_time' to true in Gazebo and all related nodes. However, I'm encountering an issue where 'current_state_monitor.cpp' is not receiving joint_angles with recent timestamps.

I've verified that joint states are being published in the correct sim time using "ros2 topic echo /joint_states" and "ros2 topic echo /clock", but it seems that the requested time reflects my PC's total run time instead of the current simulation time step. I tried several ways to set the 'use_sim_time' param to true globally before initializing 'moveit_py' but it's not working out.

Any guidance on resolving this would be greatly appreciated.

Thank you.

Error message:
Screenshot from 2024-07-12 11-06-16

'ur_sort.py':
Screenshot from 2024-07-12 11-11-31

@Divyam-uga Divyam-uga added the bug Something isn't working label Jul 12, 2024
@ron007d
Copy link

ron007d commented Jul 31, 2024

I guess you are using gazebo
by adding use_sim_time: True in the moveit config dict you'll be able to get to monitor planning running but
it will fetch another error

terminate called after throwing an instance of 'rclcpp::exceptions::InvalidParameterValueException'
  what():  parameter 'qos_overrides./clock.subscription.durability' could not be set: 
Aborted (core dumped)

Python code

moveit_config_dict.update({'use_sim_time' : True})

Copy link

This issue is being labeled as stale because it has been open 45 days with no activity. It will be automatically closed after another 45 days without follow-ups.

@github-actions github-actions bot added the stale Inactive issues and PRs are marked as stale and may be closed automatically. label Sep 16, 2024
@Jelmerdw
Copy link
Contributor

I experience the same problem when using the moveit_servo servo_node in combination with Gazebo simulation. I launch all nodes with the 'use_sim_time' set to True, however the current_state_monitor still seems to use wall time. Did you found a solution?

@github-actions github-actions bot removed the stale Inactive issues and PRs are marked as stale and may be closed automatically. label Oct 15, 2024
@Jelmerdw Jelmerdw mentioned this issue Oct 15, 2024
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants