Skip to content

joint_trajectory_client Blocks After Sending a Command #270

Open
@Khouloud-Hamrouni

Description

@Khouloud-Hamrouni

I'm still struggling with the joint_trajectory_client demo lol.
When running joint_trajectory_client.cpp, the node blocks after sending the first trajectory command. Although the action server accepts the goal, the node never returns from spin_until_future_complete(), and subsequent commands (e.g., resetting to default) are not executed.
In the first terminal, when launching:

ros2 launch lbr_bringup gazebo.launch.py \
    ctrl:=joint_trajectory_controller \
    model:=iiwa14

This is what i get in the end:

[ruby $(which ign) gazebo-2] [INFO] [1743072843.525970997] [lbr.joint_trajectory_controller]: Received new action goal
[ruby $(which ign) gazebo-2] [INFO] [1743072843.526142370] [lbr.joint_trajectory_controller]: Accepted new action goal
[ruby $(which ign) gazebo-2] [INFO] [1743072860.413727070] [lbr.joint_trajectory_controller]: Goal reached, success!

In the second terminal, when launching:
ros2 run lbr_demos_cpp joint_trajectory_client --ros-args -r __ns:=/lbr

I've got:

[INFO] [1743072843.206167323] [lbr.joint_trajectory_client]: Waiting for action server to become available...
[INFO] [1743072843.524862162] [lbr.joint_trajectory_client]: Action server available.
[INFO] [1743072843.524973612] [lbr.joint_trajectory_client]: Rotating odd joints.
[INFO] [1743072843.526586564] [lbr.joint_trajectory_client]: Goal was accepted by server.

Observations:

  • The first command (e.g., "Rotating odd joints") is accepted and executed.
  • The node blocks waiting for a result; no result is published on the topic /joint_trajectory_controller/follow_joint_trajectory/result.
  • Attempting to list controllers or contact /controller_manager/list_controllers fails, indicating that the controller manager is unresponsive.
  • The log "Moving to zero position" is never shown

Thank you for your help and support!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions