Skip to content

Commit 6d23e15

Browse files
committed
fixed unknown bug
1 parent aa1fc7c commit 6d23e15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guidance/guidance_los/scripts/los_guidance_action_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,14 +206,14 @@ def cancel_callback(self, goal_handle: ServerGoalHandle):
206206
return CancelResponse.ACCEPT
207207

208208
def pose_callback(self, msg: PoseWithCovarianceStamped):
209-
State.pose = pose_from_ros(msg.pose.pose)
209+
self.state.pose = pose_from_ros(msg.pose.pose)
210210

211211
if not self.filter_initialized:
212212
self.guidance_calculator.reset_filter_state(self.state)
213213
self.filter_initialized = True
214214

215215
def twist_callback(self, msg: TwistWithCovarianceStamped):
216-
State.twist = twist_from_ros(msg.twist.twist)
216+
self.state.twist = twist_from_ros(msg.twist.twist)
217217

218218
def calculate_guidance(self) -> State:
219219
waypoint: State = self.waypoints[self.current_waypoint_index]

0 commit comments

Comments
 (0)