Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

Fix UR location for Mock HW #236

Merged
merged 5 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/picknik_ur_base_config/description/picknik_ur_macro.xacro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<robot xmlns:xacro="http://ros.org/wiki/xacro">
<xacro:macro name="picknik_ur" params="parent child initial_positions_file">
<xacro:macro name="picknik_ur" params="parent child initial_positions_file *origin">
<!-- parameters -->
<xacro:arg name="use_fake_hardware" default="false"/>
<xacro:arg name="external_camera" default="false"/>
Expand Down Expand Up @@ -57,7 +57,7 @@
script_filename="$(find ur_robot_driver)/resources/ros_control.urscript"
output_recipe_filename="$(find ur_robot_driver)/resources/rtde_output_recipe.txt"
input_recipe_filename="$(find ur_robot_driver)/resources/rtde_input_recipe.txt">
<origin xyz="0 0 0" rpy="0 0 0"/>
<xacro:insert_block name="origin" />
</xacro:ur_robot>

<xacro:unless value="$(arg has_tool_changer)">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
<xacro:include filename="$(arg environment_xacro)"/>

<!-- Robot: contains robot description from the world frame to the tool frame -->
<xacro:picknik_ur parent="world" child="tool0" initial_positions_file="$(arg initial_positions_file)" />
<xacro:picknik_ur parent="world" child="tool0" initial_positions_file="$(arg initial_positions_file)">
<origin xyz="0 0 0" rpy="0 0 0" />
</xacro:picknik_ur>

<!-- Gripper and UR adapter and realsense camera -->
<xacro:picknik_ur_attachments parent="tool0" child="grasp_link" has_tool_changer="$(arg has_tool_changer)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
<xacro:include filename="$(arg environment_xacro)"/>

<!-- Robot: contains robot description from the world frame to the tool frame -->
<xacro:picknik_ur parent="world" child="tool0" initial_positions_file="$(arg initial_positions_file)" />
<xacro:picknik_ur parent="world" child="tool0" initial_positions_file="$(arg initial_positions_file)">
<origin xyz="0 0 0" rpy="0 0 ${pi/2}" />
</xacro:picknik_ur>

<!-- Gripper and UR adapter and realsense camera -->
<xacro:picknik_ur_attachments parent="tool0" child="grasp_link" has_tool_changer="$(arg has_tool_changer)"/>
Expand Down
Loading