gz_ros2_control icon indicating copy to clipboard operation
gz_ros2_control copied to clipboard

Multiple command interfaces not functioning

Open mhubii opened this issue 1 year ago • 1 comments

Hi, I am trying to add gazebo fortress to https://github.com/lbr-stack/lbr_fri_ros2_stack for humble

Therefore I have installed ros-humble-ign-ros2-control binaries.

I added the following sections to the urdf

        <gazebo>
            <plugin filename="ign_ros2_control-system" name="ign_ros2_control::IgnitionROS2ControlPlugin">
                ...
            </plugin>
        </gazebo>

        <ros2_control name="lbr_hardware_interface" type="system">
            <hardware>
                <plugin>ign_ros2_control/IgnitionSystem</plugin>
            </hardware>
        </ros2_control>

The simulation starts and the controllers get activated. However, when sending commands to the action server, the robot just won't move and I don't know what to do. The joint state broadcaster works fine.

The demos in this repository work fine.

What is something that I could be looking for? Thank you for the help!

mhubii avatar Sep 08 '23 00:09 mhubii

I believe to have found the issue. If inside

<ros2_control>
    <joint ...>
        <command_interface>...</command_interface>
        <command_interface>...</command_interface>
    </joint>
</ros2_control>

there are multiple command interfaces, ign_ros2_control doesn't seem to work?

when a command interface is removed, the system works as intended

iiwa7.webm

mhubii avatar Sep 08 '23 15:09 mhubii