Skip to content

Controller files not compatible when prefix used with gen3_macro.xacro #88

@aamirhatim

Description

@aamirhatim

My scenario:
I'm calling gen3_macro.xacro within another xacro file I am making, following a similar setup described in kortex_description/robots/*. The only difference is that I am adding a value for prefix instead of passing an empty string. The model will load fine in Gazebo, but I get errors from the controller(s) launched from <arm>/<dof>/config/joint_position_controllers.yaml saying that joint_{x} does not exist (since the prefix I added in the xacro changed all joint names but the controller is looking for joints without the prefix).

Current workaround:
I've edited joint_position_controllers.yaml file by adding my prefix to the beginning of each joint name listed in the controller params. With this change, everything looks to be working as expected.

Potential fix:
Was this functionality intentional? Is it up to the developer to make their own controller file if a prefix is used? A possible fix could be to add $(arg prefix) before all the joint names and load the yaml file with the subst_value='true' arg set when loading the params to the parameter server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions