Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
[execute_trajectory] Set odometry topic from launch file
Browse files Browse the repository at this point in the history
  • Loading branch information
AnaBatinovic committed Mar 21, 2023
1 parent 7d00eb6 commit ba3e013
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions launch/execute_trajectory.launch
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
<launch>
<arg name="rate" default="10" />
<arg name="namespace" default="$(env UAV_NAMESPACE)" />
<arg name="odometry" default="odometry"/>

<group ns="$(arg namespace)">
<node name="execute_trajectory" pkg="uav_frontier_exploration_3d"
type="execute_trajectory_state_machine.py" output="screen" />
<param name="radius_trajectory_executed" value="0.7"/>
<param name="feedback_collection_time" value="1.0"/>
<param name="rate" value="$(arg rate)"/>
<remap from="odometry" to="$(arg odometry)"/>
</group>
</launch>
2 changes: 1 addition & 1 deletion scripts/execute_trajectory_state_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __init__(self):
self.targetPointCallback, queue_size=1)
rospy.Subscriber('carrot/trajectory', MultiDOFJointTrajectoryPoint,
self.referenceCallback, queue_size=1)
rospy.Subscriber('uav/cartographer/odometry_filtered_acc', Odometry,
rospy.Subscriber('odometry', Odometry,
self.globalPositionCallback, queue_size=1)
rospy.Subscriber('executing_trajectory', Int32,
self.executingTrajectoryCallback, queue_size=1)
Expand Down

0 comments on commit ba3e013

Please sign in to comment.