Skip to content

Commit

Permalink
Update odom topic
Browse files Browse the repository at this point in the history
  • Loading branch information
rolker committed Jan 26, 2024
1 parent dbcad75 commit ce3bec8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/robot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ udp_bridge:
tf: {source: /tf}
tf_static: {source: /tf_static}
control_helm: {source: project11/control/helm}
odom: {source: project11/odom}
odom: {source: odom}
nav_visualization_markers: {source: navigator/visualization_markers}


Expand Down
4 changes: 0 additions & 4 deletions launch/robot_core.launch
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<arg name="enableBridge" default="true"/>
<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)"/>
Expand All @@ -26,7 +25,6 @@
<remap from="nav/orientation" to="project11/nav/orientation"/>
<remap from="nav/velocity" to="project11/nav/velocity"/>
<remap from="nav/active_sensor" to="project11/nav/active_sensor"/>
<remap from="odom" to="project11/odom"/>
</node>

<!-- helm_manager is the low level heart of project11. It manages which control messages get
Expand All @@ -38,7 +36,6 @@
<remap from="heartbeat" to="project11/heartbeat"/>
<remap from="status/helm" to="project11/status/helm"/>
<remap from="piloting_mode" to="project11/piloting_mode"/>
<remap from="odom" to="$(arg odom_topic)"/>
<param name="piloting_mode_prefix" value="project11/piloting_mode/"/>
</node>

Expand All @@ -52,7 +49,6 @@
<node pkg="project11_navigation" type="navigator" name="navigator" ns="$(arg namespace)">
<remap from="~/cmd_vel" to="project11/piloting_mode/autonomous/cmd_vel"/>
<remap from="~/enable" to="project11/piloting_mode/autonomous/active"/>
<remap from="odom" to="project11/odom"/>
</node>
<include if="$(arg default_nav_stack)" file="$(find project11_navigation)/launch/default_nav_stack.launch">
<arg name="namespace" value="$(arg namespace)/navigator"/>
Expand Down
2 changes: 1 addition & 1 deletion src/project11/nav.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def __init__(self, tfBuffer = None):
EarthTransforms.__init__(self, tfBuffer)
self.odometry = None

self.odom_sub = rospy.Subscriber('project11/odom', Odometry, self.odometryCallback, queue_size = 1)
self.odom_sub = rospy.Subscriber('odom', Odometry, self.odometryCallback, queue_size = 1)


def odometryCallback(self, msg):
Expand Down

0 comments on commit ce3bec8

Please sign in to comment.