ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I found the solution. The warning "[WARN] Could not identify parent group for end-effector 'hand'" led me to add another group to my SRDF and then joystick_control.launch worked and I could control my robot arm with a joystick!

Specifically, I added this to my arm's SRDF located at "cougarbot_moveit_config/config/cougarbot.srdf".

    <group name="hand">
      <link name="hand" />
    </group>

Here's my full SRDF.

solution: cougarbot_moveit_config/config/cougarbot.srdf
<?xml version="1.0" ?>
<!--This does not replace URDF, and is not an extension of URDF.
    This is a format for representing semantic information about the robot structure.
    A URDF file must exist for this robot as well, where the joints and the links that are referenced are defined
-->
<robot name="cougarbot">
    <!--GROUPS: Representation of a set of joints and links. This can be useful for specifying DOF to plan for, defining arms, end effectors, etc-->
    <!--LINKS: When a link is specified, the parent joint of that link (if it exists) is automatically included-->
    <!--JOINTS: When a joint is specified, the child link of that joint (which will always exist) is automatically included-->
    <!--CHAINS: When a chain is specified, all the links along the chain (including endpoints) are included in the group. Additionally, all the joints that are parents to included links are also included. This means that joints along the chain and the parent joint of the base link are included in the group-->
    <!--SUBGROUPS: Groups can also be formed by referencing to already defined group names-->
    <group name="arm">
        <joint name="fixed" />
        <joint name="hip" />
        <joint name="shoulder" />
        <joint name="elbow" />
        <joint name="wrist" />
    </group> 
    <group name="hand"> <!--added this to fix-->
      <link name="hand" />
    </group>

    <!--END EFFECTOR: Purpose: Represent information about an end effector.-->
    <end_effector name="hand" parent_link="hand" group="arm" />
    <!--DISABLE COLLISIONS: By default it is assumed that any link of the robot could potentially come into collision with any other link in the robot. This tag disables collision checking between a specified pair of links. -->
    <disable_collisions link1="base_link" link2="torso" reason="Adjacent" />
    <disable_collisions link1="base_link" link2="upper_arm" reason="Never" />
    <disable_collisions link1="hand" link2="lower_arm" reason="Adjacent" />
    <disable_collisions link1="hand" link2="upper_arm" reason="Never" />
    <disable_collisions link1="lower_arm" link2="upper_arm" reason="Adjacent" />
    <disable_collisions link1="torso" link2="upper_arm" reason="Adjacent" />
</robot>

I found the solution. solution to my own problem.

The warning "[WARN] Could not identify parent group for end-effector 'hand'" led me to add another group to my SRDF and then SRDF. Then joystick_control.launch worked and I could control my robot arm with a joystick!

Specifically, I added this to my arm's SRDF located at "cougarbot_moveit_config/config/cougarbot.srdf".

    <group name="hand">
      <link name="hand" />
    </group>

Here's my full SRDF.

solution: cougarbot_moveit_config/config/cougarbot.srdf
<?xml version="1.0" ?>
<!--This does not replace URDF, and is not an extension of URDF.
    This is a format for representing semantic information about the robot structure.
    A URDF file must exist for this robot as well, where the joints and the links that are referenced are defined
-->
<robot name="cougarbot">
    <!--GROUPS: Representation of a set of joints and links. This can be useful for specifying DOF to plan for, defining arms, end effectors, etc-->
    <!--LINKS: When a link is specified, the parent joint of that link (if it exists) is automatically included-->
    <!--JOINTS: When a joint is specified, the child link of that joint (which will always exist) is automatically included-->
    <!--CHAINS: When a chain is specified, all the links along the chain (including endpoints) are included in the group. Additionally, all the joints that are parents to included links are also included. This means that joints along the chain and the parent joint of the base link are included in the group-->
    <!--SUBGROUPS: Groups can also be formed by referencing to already defined group names-->
    <group name="arm">
        <joint name="fixed" />
        <joint name="hip" />
        <joint name="shoulder" />
        <joint name="elbow" />
        <joint name="wrist" />
    </group> 
    <group name="hand"> <!--added this to fix-->
      <link name="hand" />
    </group>

    <!--END EFFECTOR: Purpose: Represent information about an end effector.-->
    <end_effector name="hand" parent_link="hand" group="arm" />
    <!--DISABLE COLLISIONS: By default it is assumed that any link of the robot could potentially come into collision with any other link in the robot. This tag disables collision checking between a specified pair of links. -->
    <disable_collisions link1="base_link" link2="torso" reason="Adjacent" />
    <disable_collisions link1="base_link" link2="upper_arm" reason="Never" />
    <disable_collisions link1="hand" link2="lower_arm" reason="Adjacent" />
    <disable_collisions link1="hand" link2="upper_arm" reason="Never" />
    <disable_collisions link1="lower_arm" link2="upper_arm" reason="Adjacent" />
    <disable_collisions link1="torso" link2="upper_arm" reason="Adjacent" />
</robot>