Skip to content

Commit

Permalink
override
Browse files Browse the repository at this point in the history
  • Loading branch information
b1n-ch1kn committed Jul 23, 2024
1 parent 5941930 commit 8ebcb55
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from driverless_common.shutdown_node import ShutdownNode


class TrackdriveHandler(ShutdownNode):
class TrackdriveHandler(Node):
mission_started = False
odom_received = False
crossed_start = False
Expand Down Expand Up @@ -59,12 +59,12 @@ def __init__(self):
self.get_logger().info("---Trackdrive handler node initialised---")

def state_callback(self, msg: State):
super().state_callback(msg)
# super().state_callback(msg)
if (
msg.state == State.DRIVING
and msg.mission == State.TRACKDRIVE
and msg.navigation_ready
and not self.mission_started
# msg.state == State.DRIVING
# and msg.mission == State.TRACKDRIVE
# and msg.navigation_ready
not self.mission_started
and self.odom_received
):
self.mission_started = True
Expand Down

0 comments on commit 8ebcb55

Please sign in to comment.