Skip to content

Failing to load the controller.yaml #512

@javijurado

Description

@javijurado

Describe the bug
I have a package call robot_description with all the urdf, config file etc (all necessary to run gz_ros2_control_demos). When I tried to load the controller on my simulation i got the following error

[gazebo-2] [INFO] [1741787180.745733094] [controller_manager]: Resource Manager has been successfully initialized. Starting Controller Manager services...
[gazebo-2] [INFO] [1741787180.950502669] [controller_manager]: Loading controller : 'joint_state_broadcaster' of type 'joint_state_broadcaster/JointStateBroadcaster'
[gazebo-2] [INFO] [1741787180.950546700] [controller_manager]: Loading controller 'joint_state_broadcaster'
[gazebo-2] [INFO] [1741787180.954088329] [controller_manager]: Controller 'joint_state_broadcaster' node arguments: --ros-args --params-file --param use_sim_time:=true 
[gazebo-2] [ERROR] [1741787180.954242372] [controller_manager]: 111 Caught exception of type : N6rclcpp10exceptions22RCLInvalidROSArgsErrorE while initializing controller 'joint_state_broadcaster': failed to parse arguments: Couldn't parse params file: '--params-file --param'. Error: Error opening YAML file, at /build/src/ros2/rcl/rcl_yaml_param_parser/src/parser.c:271, at /build/src/ros2/rcl/rcl/src/rcl/arguments.c:415
[spawner-5] [FATAL] [1741787180.955017408] [spawner_joint_state_broadcaster]: Failed loading controller joint_state_broadcaster
[ERROR] [spawner-5]: process has died [pid 49197, exit code 1, cmd '/home/javier/workspace/KION/kion-ros2-rt/install/lib/controller_manager/spawner joint_state_broadcaster --ros-args'].

but if instead of that I create a symlink to the same config file but at the level of src folder works.

Path that fail:

<parameters>/home/javier/workspace/TEST/test-ros2-rt/src/test_nonfix/robot_description/forklift_1252/config/controllers.yaml</parameters>

Path that works and is a symlink to the previous one:
<parameters>/home/javier/workspace/TEST/test-ros2-rt/src/test_controllers.yaml</parameters>

Environment (please complete the following information):

  • OS: Debian:12-slim container
  • Everything has been build from source
  • ROS: jazzy

If something is not clear, i can explain better. Also if some data is needed, I can put it here

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstale

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions