Skip to content

Commit

Permalink
move_group name set to ur_manipulator for every ur_type
Browse files Browse the repository at this point in the history
  • Loading branch information
fdurchdewald committed Dec 12, 2023
1 parent 7b4c968 commit 1ae71fa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ur_moveit_config/launch/ur_moveit.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def launch_setup(context, *args, **kwargs):
servo_node = Node(
package="moveit_servo",
condition=IfCondition(launch_servo),
executable="servo_node",
executable="servo_node_main",
parameters=[
servo_params,
robot_description_semantic,
Expand Down
4 changes: 1 addition & 3 deletions ur_moveit_config/srdf/ur.srdf.xacro
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<robot xmlns:xacro="http://wiki.ros.org/xacro" name="$(arg name)">

<!-- robot name parameter -->
<xacro:arg name="name" default="ur"/>
<!-- parameters -->
<xacro:arg name="prefix" default="" />

<xacro:include filename="$(find ur_moveit_config)/srdf/ur_macro.srdf.xacro"/>

<xacro:ur_srdf name="$(arg name)" prefix="$(arg prefix)"/>
<xacro:ur_srdf prefix="$(arg prefix)"/>

</robot>
10 changes: 5 additions & 5 deletions ur_moveit_config/srdf/ur_macro.srdf.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,33 @@
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
-->
<xacro:macro name="ur_srdf" params="name prefix">
<xacro:macro name="ur_srdf" params="prefix">
<!--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="${prefix}${name}_manipulator">
<group name="${prefix}ur_manipulator">
<chain base_link="${prefix}base_link" tip_link="${prefix}tool0" />
</group>
<!--GROUP STATES - Purpose - Define a named state for a particular group, in terms of joint values. This is useful to define states like 'folded arms'-->
<group_state name="${prefix}home" group="${prefix}${name}_manipulator">
<group_state name="${prefix}home" group="${prefix}ur_manipulator">
<joint name="${prefix}elbow_joint" value="0" />
<joint name="${prefix}shoulder_lift_joint" value="-1.5707" />
<joint name="${prefix}shoulder_pan_joint" value="0" />
<joint name="${prefix}wrist_1_joint" value="0" />
<joint name="${prefix}wrist_2_joint" value="0" />
<joint name="${prefix}wrist_3_joint" value="0" />
</group_state>
<group_state name="${prefix}up" group="${prefix}${name}_manipulator">
<group_state name="${prefix}up" group="${prefix}ur_manipulator">
<joint name="${prefix}elbow_joint" value="0" />
<joint name="${prefix}shoulder_lift_joint" value="-1.5707" />
<joint name="${prefix}shoulder_pan_joint" value="0" />
<joint name="${prefix}wrist_1_joint" value="-1.5707" />
<joint name="${prefix}wrist_2_joint" value="0" />
<joint name="${prefix}wrist_3_joint" value="0" />
</group_state>
<group_state name="${prefix}test_configuration" group="${prefix}${name}_manipulator">
<group_state name="${prefix}test_configuration" group="${prefix}ur_manipulator">
<joint name="${prefix}elbow_joint" value="1.4" />
<joint name="${prefix}shoulder_lift_joint" value="-1.62" />
<joint name="${prefix}shoulder_pan_joint" value="1.54" />
Expand Down

0 comments on commit 1ae71fa

Please sign in to comment.