Skip to content

Commit

Permalink
Add namespace and respawn parameters to the nodes in the launch file (R…
Browse files Browse the repository at this point in the history
…obotWebTools#977)

Fix indentation

Fix indentation

Update rosbridge_server/launch/rosbridge_websocket_launch.xml

Co-authored-by: Błażej Sowa <[email protected]>
  • Loading branch information
FlorianLebecque and bjsowa authored Nov 28, 2024
1 parent 1de6896 commit 460d202
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions rosbridge_server/launch/rosbridge_websocket_launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<arg name="certfile" default=""/>
<arg name="keyfile" default="" />

<arg name="namespace" default="" />

<arg name="retry_startup_delay" default="5.0" />

<arg name="fragment_timeout" default="600" />
Expand All @@ -22,10 +24,12 @@
<arg name="params_glob" default="" />
<arg name="bson_only_mode" default="false" />

<arg name="respawn" default="false"/>

<arg unless="$(var bson_only_mode)" name="binary_encoder" default="default"/>

<group if="$(var ssl)">
<node name="rosbridge_websocket" pkg="rosbridge_server" exec="rosbridge_websocket" output="screen">
<node name="rosbridge_websocket" namespace="$(var namespace)" pkg="rosbridge_server" exec="rosbridge_websocket" output="screen" respawn="$(var respawn)" >
<param name="certfile" value="$(var certfile)" />
<param name="keyfile" value="$(var keyfile)" />
<param name="port" value="$(var port)"/>
Expand All @@ -45,8 +49,9 @@
<param name="params_glob" value="$(var params_glob)"/>
</node>
</group>

<group unless="$(var ssl)">
<node name="rosbridge_websocket" pkg="rosbridge_server" exec="rosbridge_websocket" output="screen">
<node name="rosbridge_websocket" namespace="$(var namespace)" pkg="rosbridge_server" exec="rosbridge_websocket" output="screen" respawn="$(var respawn)">
<param name="port" value="$(var port)"/>
<param name="address" value="$(var address)"/>
<param name="url_path" value="$(var url_path)"/>
Expand All @@ -67,7 +72,7 @@
</node>
</group>

<node name="rosapi" pkg="rosapi" exec="rosapi_node">
<node name="rosapi" namespace="$(var namespace)" pkg="rosapi" exec="rosapi_node" respawn="$(var respawn)">
<param name="topics_glob" value="$(var topics_glob)"/>
<param name="services_glob" value="$(var services_glob)"/>
<param name="params_glob" value="$(var params_glob)"/>
Expand Down

0 comments on commit 460d202

Please sign in to comment.