Skip to content

Commit a7110bb

Browse files
committed
Change names
1 parent b6a49ad commit a7110bb

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ UR controller RS-485 tool port ↔ URCap forwarder ↔ TCP socket ↔ Computer
9393

9494
Although this is a TCP connection, the driver uses a pseudo-TTY to translate TCP packets into RTU frames. Typically, the virtual serial port is `/tmp/ttyUR`.
9595

96-
To enable this mode, set `use_fake_hardware:=false`, `create_socat_tty:=true`, and specify the `ip_address` and `port` of the UR forwarder:
96+
To enable this mode, set `use_fake_hardware:=false`, `create_socat_tty:=true`, and specify the `socat_ip_address` and `socat_port` of the UR forwarder:
9797
```bash
9898
ros2 launch robotiq_hande_driver gripper_controller_preview.launch.py \
9999
use_fake_hardware:=false \
100100
create_socat_tty:=true \
101101
tty_port:=/tmp/ttyUR \
102-
ip_address:=192.168.1.2 \
103-
port:=54321 \
102+
socat_ip_address:=192.168.1.2 \
103+
socat_port:=54321 \
104104
frequency_hz:=10 \
105105
launch_rviz:=true
106106
```

robotiq_hande_driver/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2121

2222
### Changed
2323

24-
* [PR-27](https://github.com/AGH-CEAI/robotiq_hande_driver/pull/27) - Renamed `ip_adress` to `ip_address`.
24+
* [PR-27](https://github.com/AGH-CEAI/robotiq_hande_driver/pull/27) - Renamed `ip_adress` to `socat_ip_address` and `port` to `socat_port`.
2525

2626
* [PR-21](https://github.com/AGH-CEAI/robotiq_hande_driver/pull/21) - Refactored the modbus communication to use multithreads:
2727
* Renamed `application.hpp/cpp` to `hande_gripper.hpp/cpp`.

robotiq_hande_driver/bringup/launch/gripper_controller_preview.launch.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ def generate_launch_description():
6464
)
6565
declared_arguments.append(
6666
DeclareLaunchArgument(
67-
"ip_address",
67+
"socat_ip_address",
6868
default_value="192.168.100.10",
6969
description="Set IP address for TCP connection.",
7070
)
7171
)
7272
declared_arguments.append(
7373
DeclareLaunchArgument(
74-
"port", default_value="54321", description="Set TCP port for connection."
74+
"socat_port", default_value="54321", description="Set TCP port for connection."
7575
)
7676
)
7777

@@ -143,8 +143,8 @@ def prepare_robot_state_publisher_node() -> Node:
143143
frequency_hz = LaunchConfiguration("frequence_hz")
144144
tty_port = LaunchConfiguration("tty_port")
145145
create_socat_tty = LaunchConfiguration("create_socat_tty")
146-
ip_address = LaunchConfiguration("ip_address")
147-
port = LaunchConfiguration("port")
146+
socat_ip_address = LaunchConfiguration("socat_ip_address")
147+
socat_port = LaunchConfiguration("socat_port")
148148

149149
robot_description_str = Command(
150150
[
@@ -173,11 +173,11 @@ def prepare_robot_state_publisher_node() -> Node:
173173
"create_socat_tty:=",
174174
create_socat_tty,
175175
" ",
176-
"ip_address:=",
177-
ip_address,
176+
"socat_ip_address:=",
177+
socat_ip_address,
178178
" ",
179-
"port:=",
180-
port,
179+
"socat_port:=",
180+
socat_port,
181181
]
182182
)
183183
return Node(

robotiq_hande_driver/hardware/src/hande_hardware_interface.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ HWI::CallbackReturn RobotiqHandeHardwareInterface::on_init(const HWI::HardwareIn
3939
bool manage_virutal_serial = str_to_lower(info_.hardware_parameters["create_socat_tty"])
4040
== "true";
4141
if(manage_virutal_serial) {
42-
auto ip_addr = info_.hardware_parameters["ip_address"];
43-
auto port = info_.hardware_parameters["port"];
42+
auto ip_addr = info_.hardware_parameters["socat_ip_address"];
43+
auto port = info_.hardware_parameters["socat_port"];
4444
auto tty_port = info_.hardware_parameters["tty_port"];
4545

4646
RCLCPP_INFO(

robotiq_hande_driver/test/test_load_hw_interface.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ class TestHWInterface : public ::testing::Test {
3636
<param name="slave_id">9</param>
3737
<param name="frequency_hz">10</param>
3838
<param name="create_socat_tty">false</param>
39-
<param name="ip_address">127.0.0.1</param>
40-
<param name="port">8888</param>
39+
<param name="socat_ip_address">127.0.0.1</param>
40+
<param name="socat_port">8888</param>
4141
</hardware>
4242
<joint name="joint1">
4343
<command_interface name="position"/>

0 commit comments

Comments
 (0)