Skip to content

Commit

Permalink
Set the robot bridge name
Browse files Browse the repository at this point in the history
  • Loading branch information
rolker committed Aug 15, 2023
1 parent 811afeb commit adb34f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions launch/operator_core.launch
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<node if="$(arg enableBridge)" pkg="udp_bridge" type="udp_bridge_node" name="udp_bridge" ns="$(arg namespace)">
<param name="port" value="$(arg localPort)"/>
</node>
<rosparam param="udp_bridge/remotes/robot/name" ns="$(arg namespace)" subst_value="True">"$(arg robotNamespace)"</rosparam>

<!-- Command bridge is used to robustly send operator commands over an unreliable connection. -->
<node pkg="command_bridge" type="command_bridge_sender_node.py" name="command_bridge_sender" ns="$(arg robotNamespace)"/>
Expand Down
2 changes: 2 additions & 0 deletions launch/robot_core.launch
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
<arg name="localPort" default="4200"/>
<arg name="default_nav_stack" default="true"/>
<arg name="odom_topic" default="project11/odom"/>
<arg name="bridge_name" default="$(arg namespace)"/>

<rosparam command="load" file="$(find project11)/config/robot.yaml" ns="$(arg namespace)"/>

<!-- The udp_bridge_node is what sends and receives messages from select topics to the operator. -->
<node if="$(arg enableBridge)" pkg="udp_bridge" type="udp_bridge_node" name="udp_bridge" ns="$(arg namespace)">
<param name="port" value="$(arg localPort)"/>
<param name="name" value="$(arg bridge_name)"/>
</node>

<!-- Command bridge is used to robustly send operator commands over an unreliable connection. -->
Expand Down

0 comments on commit adb34f0

Please sign in to comment.