Skip to content

Commit 960d317

Browse files
author
cobot
committed
fix world frame to cobot base_link
1 parent 59cc7ee commit 960d317

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

kortex_description/robots/gen3.xacro

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,16 @@
3333
<!-- convert to property to use substitution in function -->
3434
<xacro:property name="initial_positions_file" default="$(arg initial_positions_file)"/>
3535
<link name="world" />
36+
37+
<link name="/cobot/base_link"/>
38+
<joint name="world_to_cobot_base" type="fixed">
39+
<parent link="world"/>
40+
<child link="/cobot/base_link"/>
41+
<origin xyz="0 0 0" rpy="0 0 0"/>
42+
</joint>
43+
3644
<xacro:load_robot
37-
parent="world"
45+
parent="/cobot/base_link"
3846
arm="$(arg arm)"
3947
gripper="$(arg gripper)"
4048
gripper_joint_name="$(arg gripper_joint_name)"
@@ -58,7 +66,7 @@
5866
sim_isaac="$(arg sim_isaac)"
5967
use_external_cable="$(arg use_external_cable)"
6068
initial_positions="${xacro.load_yaml(initial_positions_file)}" >
61-
<origin xyz="0 0 0" rpy="0 0 0" /> <!-- position robot in the world -->
69+
<origin xyz="0 0 0.468" rpy="0 0 0" /> <!-- position robot in the world -->
6270
</xacro:load_robot>
6371
<xacro:cobot_collision/>
6472

kortex_moveit_config/kinova_gen3_7dof_robotiq_2f_85_moveit_config/launch/robot.launch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def launch_setup(context, *args, **kwargs):
110110
package="controller_manager",
111111
executable="ros2_control_node",
112112
parameters=[
113-
moveit_config.robot_description, # <-- add this line
113+
moveit_config.robot_description,
114114
ros2_controllers_path,
115115
{"update_rate": 1000},
116116
],

0 commit comments

Comments
 (0)