-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes made during mock rolls, debugging sessions that need to be pr…
…eserved (#47) * updated path planner and autonsystem, added option for building trajectory from __init__ parameter of trajectory.py * [BETA] obstacle avoidance * added halfplane constraints to MPC * Switched path planning to use offsets along the path normal * Cleaned up unused code, added comments * CI (#19) * pylint fixes more pylint fixes pylint fixes for 2d sim and other existing modules pylint fixes yet again pylint fixes yet again #2 * removed ROSbags * added changes requested * Updated main.launch Co-authored-by: Mehul Goel <[email protected]> Co-authored-by: TiaSinghania <[email protected]> Co-authored-by: PatXue <[email protected]> * fixed main.launch typo * Fixed topic remapping * fixed topic remp, added dummy subscriber for debug * Fixed heading gain, added ghost NAND feature * removed dummy node (was used for debug) * Commented out MPC halfplane constraints, Updated sim launch file * Added exception for path run out for MPC, stanley Added more mock roll paths and starting poses expanded MPC traj index search window * Added debug steer routine * updated the cut path * changed controller type * Added debug topic for filter <-> gnss distance * Turned on debug logging for INS * set debug to true in INS_params.yml * removed duplicate publish_rtk_err.py fixed typo in publish_rtk_err.py variable naming * Fixed pylint warnings * removed duplicate publish_rtk_err.py * removed unusued vars in MPC --------- Co-authored-by: Christian Luu <[email protected]> Co-authored-by: Mehul Goel <[email protected]> Co-authored-by: TiaSinghania <[email protected]> Co-authored-by: PatXue <[email protected]> Co-authored-by: Buggy <[email protected]>
- Loading branch information
1 parent
3af4032
commit 26935a2
Showing
15 changed files
with
403 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!-- roslaunch buggy main.launch --> | ||
|
||
<launch> | ||
<arg name="controller" default="stanley" /> | ||
<arg name="start_dist" default="0.0" /> | ||
<arg name="path" default="buggycourse_safe_1.json" /> | ||
|
||
<include file="$(find microstrain_inertial_driver)/launch/microstrain.launch"> | ||
<arg name="params_file" value="/rb_ws/src/buggy/INS_params.yml"/> | ||
</include> | ||
|
||
<remap from="/SC/nav/odom" to="/nav/odom"/> | ||
<remap from="/buggy/input/steering" to="/SC/buggy/input/steering"/> | ||
|
||
<node name="serial_node" pkg="rosserial_python" type="serial_node.py"> | ||
<param name="port" type="string" value="/dev/ttyUSB0"/> | ||
<param name="baud" type="int" value="1000000"/> | ||
</node> | ||
<node name="serial_node2" pkg="rosserial_python" type="serial_node.py"> | ||
<param name="port" type="string" value="/dev/ttyACM1"/> | ||
<param name="baud" type="int" value="115200"/> | ||
</node> | ||
<node name="foxglove" pkg="foxglove_bridge" type="foxglove_bridge" /> | ||
<node name="telematics" pkg="buggy" type="telematics.py" /> | ||
<node name="publish_rtk_err" pkg="buggy" type="publish_rtk_err.py" output="screen"/> | ||
|
||
|
||
<!-- ENABLE AUTON --> | ||
<!-- autonsystem args: controller start_dist path buggy_name is_sim --> | ||
<!-- Conditional Launch Files, depending on if NAND Exists or not --> | ||
<arg name="autonsystem_args" default="--controller $(arg controller) --dist 0.0 --traj $(arg path) --self_name SC" /> | ||
<node name="auton_system" pkg="buggy" type="autonsystem.py" output="screen" args="$(arg autonsystem_args)"/> | ||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!-- roslaunch buggy debug_steer.launch --> | ||
|
||
<launch> | ||
<node name="serial_node" pkg="rosserial_python" type="serial_node.py"> | ||
<param name="port" type="string" value="/dev/ttyUSB0"/> | ||
<param name="baud" type="int" value="1000000"/> | ||
</node> | ||
<node name="serial_node2" pkg="rosserial_python" type="serial_node.py"> | ||
<param name="port" type="string" value="/dev/ttyACM1"/> | ||
<param name="baud" type="int" value="115200"/> | ||
</node> | ||
<!-- ENABLE AUTON --> | ||
<node name="debug_steer" pkg="buggy" type="debug_steer.py" output="screen"/> | ||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<!-- roslaunch buggy main.launch --> | ||
|
||
<launch> | ||
<arg name="controller" default="stanley" /> | ||
<arg name="start_dist" default="0.0" /> | ||
<arg name="path" default="buggycourse_safe_1.json" /> | ||
|
||
<include file="$(find microstrain_inertial_driver)/launch/microstrain.launch"> | ||
<arg name="params_file" value="/rb_ws/src/buggy/INS_params.yml"/> | ||
</include> | ||
|
||
<!-- run a sim with name = NAND at velocity ~= 0 --> | ||
<arg name="starting_pose" default="UC_TO_PURNELL" /> | ||
<arg name="velocity" default="0.0001" /> | ||
<arg name="buggy_name" default="NAND" /> | ||
|
||
<node name="sim_2d_engine" pkg="buggy" type="engine.py" output="screen" | ||
args="$(arg starting_pose) $(arg velocity) $(arg buggy_name)"/> | ||
|
||
<remap from="/SC/nav/odom" to="/nav/odom"/> | ||
<remap from="/buggy/input/steering" to="/SC/buggy/input/steering"/> | ||
|
||
<node name="serial_node" pkg="rosserial_python" type="serial_node.py"> | ||
<param name="port" type="string" value="/dev/ttyUSB0"/> | ||
<param name="baud" type="int" value="1000000"/> | ||
</node> | ||
<node name="serial_node2" pkg="rosserial_python" type="serial_node.py"> | ||
<param name="port" type="string" value="/dev/ttyACM1"/> | ||
<param name="baud" type="int" value="115200"/> | ||
</node> | ||
<node name="foxglove" pkg="foxglove_bridge" type="foxglove_bridge" /> | ||
<node name="telematics" pkg="buggy" type="telematics.py" /> | ||
|
||
<!-- Run the simulation with NAND --> | ||
<arg name="autonsystem_args" default="--controller $(arg controller) --dist 0.0 --traj $(arg path) --self_name SC --other_name NAND" /> | ||
<node name="auton_system" pkg="buggy" type="autonsystem.py" output="screen" args="$(arg autonsystem_args)"/> | ||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
[ | ||
{ | ||
"key": "df250f90-3cc4-4eb8-991c-cb88fa03f774", | ||
"lat": 40.44295800415301, | ||
"lon": -79.9426950522631, | ||
"active": false | ||
}, | ||
{ | ||
"key": "93e8d2e2-43e1-460f-9ad9-1bf272dd6b4d", | ||
"lat": 40.4430150847491, | ||
"lon": -79.94294473319194, | ||
"active": false | ||
}, | ||
{ | ||
"key": "7fd4962e-8c0a-4780-bf19-0d3fcc597e1f", | ||
"lat": 40.443081717291996, | ||
"lon": -79.94324300478857, | ||
"active": false | ||
}, | ||
{ | ||
"key": "00677a33-8f23-41f5-8287-222d2d1efd40", | ||
"lat": 40.44311914802749, | ||
"lon": -79.9434202506794, | ||
"active": false | ||
} | ||
] |
Oops, something went wrong.