Skip to content

Commit 7c6adc9

Browse files
committed
ci
1 parent d537146 commit 7c6adc9

File tree

7 files changed

+31
-37
lines changed

7 files changed

+31
-37
lines changed

scripts/visualizer.py

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -98,17 +98,11 @@ def __init__(self, state_machine_instance, *args, **kwargs):
9898
self.viz = Node("Visualizer")
9999

100100
self.viz.create_subscription(
101-
StateMachineStructure,
102-
STRUCTURE_TOPIC,
103-
self.state_machine.container_structure_callback,
104-
1
101+
StateMachineStructure, STRUCTURE_TOPIC, self.state_machine.container_structure_callback, 1
105102
)
106103

107104
self.viz.create_subscription(
108-
StateMachineStateUpdate,
109-
STATUS_TOPIC,
110-
self.state_machine.container_status_callback,
111-
1
105+
StateMachineStateUpdate, STATUS_TOPIC, self.state_machine.container_status_callback, 1
112106
)
113107

114108
def paintEvent(self, event):
@@ -144,20 +138,14 @@ def main():
144138
signal.signal(signal.SIGINT, signal.SIG_DFL)
145139
state_machine = StateMachine()
146140

147-
<<<<<<< HEAD
148141
print("Node Created...")
149142

150143
print("Subscriptions Created...")
151144

152-
=======
153-
154145
print("Node Created...")
155146

156-
157147
print("Subscriptions Created...")
158148

159-
160-
>>>>>>> nav_fixes
161149
app = QApplication([]) # type: ignore
162150
g = GUI(state_machine)
163151
g.show()

starter_project/autonomy/launch/starter_project.launch.py

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,21 @@ def generate_launch_description():
3131
condition=LaunchConfigurationEquals("rviz", "true"),
3232
)
3333

34-
return LaunchDescription([
35-
launch_include_sim,
36-
rviz_node,
37-
38-
# ==========
39-
# Perception
40-
# ==========
41-
perception_node,
42-
43-
# ===========
44-
# Navigation
45-
# ===========
46-
navigation_node,
47-
48-
# ============
49-
# Localization
50-
# ============
51-
localization_node
52-
])
34+
return LaunchDescription(
35+
[
36+
launch_include_sim,
37+
rviz_node,
38+
# ==========
39+
# Perception
40+
# ==========
41+
perception_node,
42+
# ===========
43+
# Navigation
44+
# ===========
45+
navigation_node,
46+
# ============
47+
# Localization
48+
# ============
49+
localization_node,
50+
]
51+
)

starter_project/autonomy/src/localization.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def spherical_to_cartesian(spherical_coord: np.ndarray, reference_coord: np.ndar
6161
"""
6262
# TODO
6363

64+
6465
def main():
6566
# initialize the node
6667
rclpy.init()

starter_project/autonomy/src/navigation/context.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414

1515
import sys
1616
import os
17-
sys.path.append(os.getcwd() + '/starter_project/autonomy/src')
17+
18+
sys.path.append(os.getcwd() + "/starter_project/autonomy/src")
1819
from util.SE3 import SE3
1920
from visualization_msgs.msg import Marker
2021

@@ -35,6 +36,7 @@ def send_drive_stop(self):
3536
# TODO: tell the rover to stop
3637
pass
3738

39+
3840
@dataclass
3941
class Environment:
4042
"""

starter_project/autonomy/src/navigation/drive_state.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from state_machine.state import State
66
from tag_seek import TagSeekState
77

8+
89
class DriveState(State):
910
def on_enter(self, context) -> None:
1011
pass
@@ -21,7 +22,7 @@ def on_loop(self, context) -> State:
2122
# (HINT: use get_drive_command(), with completion_thresh set to 0.7 and turn_in_place_thresh set to 0.2)
2223

2324
# TODO: if we are finished getting to the target, go to TagSeekState
24-
25+
2526
# TODO: send the drive command to the rover
2627

2728
# TODO: tell state machine to stay in the DriveState by returning self

starter_project/autonomy/src/navigation/navigation_starter_project.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def __init__(self, ctx: Context):
5050

5151
self.create_timer(1 / 60, self.state_machine.update)
5252

53+
5354
def main():
5455
try:
5556
# TODO: init a node called "navigation"

starter_project/autonomy/src/navigation/state.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
from context import Context
88

9+
910
class DoneState(State):
1011
def on_enter(self, context) -> None:
1112
pass
@@ -18,7 +19,8 @@ def on_loop(self, context) -> State:
1819
cmd_vel = Twist()
1920
context.rover.send_drive_command(cmd_vel)
2021
return self
21-
22+
23+
2224
class FailState(State):
2325
def on_enter(self, context) -> None:
2426
pass
@@ -30,4 +32,4 @@ def on_loop(self, context) -> State:
3032
# Stop rover
3133
cmd_vel = Twist()
3234
context.rover.send_drive_command(cmd_vel)
33-
return self
35+
return self

0 commit comments

Comments
 (0)