Skip to content

Commit

Permalink
driver: add default port for IO server to launch file (#484)
Browse files Browse the repository at this point in the history
Thanks to @cjue for providing the initial fix / commit (in #483), which I've tweaked a little here.
  • Loading branch information
gavanderhoorn authored Mar 27, 2022
1 parent 19e629f commit 46b1d92
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions motoman_driver/launch/io_relay.launch
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
<!-- IP of robot (or PC running simulation) -->
<arg name="robot_ip" doc="IP of controller" />

<!-- TCP port the IO server is listening on -->
<arg name="tcp_port" default="50242" doc="TCP port the IO server is listening on" />

<!-- Load the byte-swapping version of io_relay if required -->
<arg name="use_bswap" doc="If true, robot driver will byte-swap all incoming and outgoing data" />

Expand All @@ -13,7 +16,12 @@

<!-- load the correct version of the io relay node -->
<node if="$(arg use_bswap)" name="io_relay"
pkg="motoman_driver" type="io_relay_bswap" />
pkg="motoman_driver" type="io_relay_bswap">
<param name="port" value="$(arg tcp_port)" />
</node>

<node unless="$(arg use_bswap)" name="io_relay"
pkg="motoman_driver" type="io_relay" />
pkg="motoman_driver" type="io_relay">
<param name="port" value="$(arg tcp_port)" />
</node>
</launch>

0 comments on commit 46b1d92

Please sign in to comment.