Skip to content

Commit 5f20653

Browse files
committed
Merge branch 'humble-devel' into feature/minor_improvments
2 parents 3a3b3bb + eef253d commit 5f20653

File tree

4 files changed

+71
-8
lines changed

4 files changed

+71
-8
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Changelog
2+
3+
All notable changes to the `robotiq_hande_driver` package will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [Unreleased]
9+
10+
### Added
11+
* [PR-1](https://github.com/AGH-CEAI/robotiq_hande_description/pull/1) - Configuration parameters for ModbusRTU
12+
13+
### Changed
14+
15+
### Deprecated
16+
17+
### Removed
18+
19+
### Fixed
20+
* [PR-2] (https://github.com/AGH-CEAI/robotiq_hande_description/pull/2) - Removed unnecessary quotation marks from parameter values.
21+
22+
### Security

urdf/robotiq_hande_gripper.ros2_control.xacro

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0"?>
22
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">
3-
<xacro:macro name="robotiq_hande_ros2_control" params="name prefix tty use_fake_hardware">
3+
<xacro:macro name="robotiq_hande_ros2_control" params="name prefix grip_pos_min grip_pos_max tty baudrate parity data_bits stop_bit slave_id use_fake_hardware">
44
<ros2_control name="${name}" type="system">
55
<hardware>
66
<xacro:if value="${use_fake_hardware}">
@@ -9,7 +9,14 @@
99

1010
<xacro:unless value="${use_fake_hardware}">
1111
<plugin>robotiq_hande_driver/RobotiqHandeHardwareInterface</plugin>
12+
<param name="grip_pos_min">${grip_pos_min}</param>
13+
<param name="grip_pos_max">${grip_pos_max}</param>
1214
<param name="tty">${tty}</param>
15+
<param name="baudrate">${baudrate}</param>
16+
<param name="parity">${parity}</param>
17+
<param name="data_bits">${data_bits}</param>
18+
<param name="stop_bit">${stop_bit}</param>
19+
<param name="slave_id">${slave_id}</param>
1320
</xacro:unless>
1421
</hardware>
1522

@@ -22,7 +29,9 @@
2229
<state_interface name="position">
2330
<param name="initial_value">0.025</param>
2431
</state_interface>
25-
<state_interface name="velocity"/>
32+
<state_interface name="velocity">
33+
<param name="initial_value">0</param>
34+
</state_interface>
2635
</joint>
2736
</ros2_control>
2837
</xacro:macro>
Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,31 @@
11
<?xml version="1.0"?>
22
<robot xmlns:xacro="http://ros.org/wiki/xacro" name="robotiq_hande_gripper">
33
<xacro:arg name="parent" default="tool0"/>
4-
<xacro:arg name="tty" default="/dev/ttyXXX"/>
4+
<xacro:arg name="grip_pos_min" default="0"/>
5+
<xacro:arg name="grip_pos_max" default="0.025"/>
6+
<xacro:arg name="tty" default="/tmp/ttyUR"/>
7+
<xacro:arg name="baudrate" default="115200"/>
8+
<xacro:arg name="parity" default="N"/>
9+
<xacro:arg name="data_bits" default="8"/>
10+
<xacro:arg name="stop_bit" default="1"/>
11+
<xacro:arg name="slave_id" default="9"/>
512
<xacro:arg name="use_fake_hardware" default="true"/>
613

714
<xacro:include filename="$(find robotiq_hande_description)/urdf/robotiq_hande_gripper.xacro"/>
815

916
<link name="$(arg parent)"/>
10-
<xacro:robotiq_hande_gripper name="robotiq_hande_gripper" prefix="" parent="$(arg parent)" tty="$(arg tty)" use_fake_hardware="$(arg use_fake_hardware)"/>
17+
<xacro:robotiq_hande_gripper
18+
name="robotiq_hande_gripper"
19+
prefix=""
20+
parent="$(arg parent)"
21+
grip_pos_min="$(arg grip_pos_min)"
22+
grip_pos_max="$(arg grip_pos_max)"
23+
tty="$(arg tty)"
24+
baudrate="$(arg baudrate)"
25+
parity="$(arg parity)"
26+
data_bits="$(arg data_bits)"
27+
stop_bit="$(arg stop_bit)"
28+
slave_id="$(arg slave_id)"
29+
use_fake_hardware="$(use_fake_hardware)"
30+
/>
1131
</robot>

urdf/robotiq_hande_gripper.xacro

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,21 @@
66

77
<xacro:include filename="$(find robotiq_hande_description)/urdf/robotiq_hande_gripper.ros2_control.xacro"/>
88

9-
<xacro:macro name="robotiq_hande_gripper" params="name prefix parent tty use_fake_hardware coupler_mass:=0.119">
9+
<xacro:macro name="robotiq_hande_gripper" params="name prefix parent grip_pos_min grip_pos_max tty baudrate parity data_bits stop_bit slave_id use_fake_hardware coupler_mass:=0.119">
1010
<!-- ros2_control parameters -->
11-
<xacro:robotiq_hande_ros2_control name="${name}" prefix="${prefix}" tty="${tty}" use_fake_hardware="${use_fake_hardware}"/>
11+
<xacro:robotiq_hande_ros2_control
12+
name="${name}"
13+
prefix="${prefix}"
14+
grip_pos_min="${grip_pos_min}"
15+
grip_pos_max="${grip_pos_max}"
16+
tty="${tty}"
17+
baudrate="${baudrate}"
18+
parity="${parity}"
19+
data_bits="${data_bits}"
20+
stop_bit="${stop_bit}"
21+
slave_id="${slave_id}"
22+
use_fake_hardware="${use_fake_hardware}"
23+
/>
1224

1325
<!-- Robotiq Coupler -->
1426
<!-- + Height added by the coupler (16.9mm) -->
@@ -75,7 +87,7 @@
7587
<parent link="${prefix}robotiq_hande_link"/>
7688
<child link="${prefix}robotiq_hande_left_finger"/>
7789
<axis xyz="1 0 0"/>
78-
<limit effort="130" lower="0" upper="0.025" velocity="0.15"/>
90+
<limit effort="130" lower="${grip_pos_min}" upper="${grip_pos_max}" velocity="0.15"/>
7991
</joint>
8092

8193
<link name="${prefix}robotiq_hande_left_finger">
@@ -105,7 +117,7 @@
105117
<parent link="${prefix}robotiq_hande_link"/>
106118
<child link="${prefix}robotiq_hande_right_finger"/>
107119
<axis xyz="-1 0 0"/>
108-
<limit effort="130" lower="0" upper="0.025" velocity="0.15"/>
120+
<limit effort="130" lower="${grip_pos_min}" upper="${grip_pos_max}" velocity="0.15"/>
109121
<mimic joint="${prefix}robotiq_hande_left_finger_joint" multiplier="1" offset="0"/>
110122
</joint>
111123

0 commit comments

Comments
 (0)