Skip to content

Failed to fetch current robot state #275

Open
@TalentLeshen-DLUT

Description

@TalentLeshen-DLUT

When I run
ros2 launch lbr_bringup gazebo.launch.py model:=iiwa14 moveit:=true
ros2 launch lbr_bringup move_group.launch.py model:=iiwa14 mode:=gazebo rviz:=true
After that
I added getCurrentState() in hello_moveit.cpp and ran ros2 launch lbr_moveit_cpp hello_moveit.launch.py model:=iiwa14 mode:=gazebo. The following error will occur:

Listening to joint states on topic 'joint_states'
[hello_moveit-1] [WARN] [1747187454.478512164] [moveit_ros.current_state_monitor]: No state update received within 100ms of system clock. Have been waiting for 0.981000s, timeout is 1.000000s
[hello_moveit-1] [INFO] [1747187454.478539442] [moveit_ros.current_state_monitor]: Didn't receive robot state (joint angles) with recent timestamp within 1.000000 seconds Requested time 63.529000 but latest received state has time 0.000000.
[hello_moveit-1] Check clock synchronization if your are running ROS across multiple machines!
[hello_moveit-1] [ERROR] [1747187454.478554689] [move_group_interface]: Failed to fetch current robot state

I tried to directly change use_sim_time to True, but this didn't solve the problem. I wonder if you could give me some suggestions so that I can solve it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions