CMU-Robotics-Club / RoboBuggy2

A complete re-write of the old RoboBuggy.
GNU General Public License v3.0
3 stars 0 forks source link

fixed busy loop bug in path planner #51

Closed Jackack closed 6 months ago

Jackack commented 6 months ago

What type of PR is this? (check all applicable)

Description

Fixed busy looping in path planning thread in autonsystem.py caused by only sleeping if NAND odom exists. Added logic to only start path planning thread if other buggy exists. Added logic to run the path planning thread at the correct frequency even if the other buggy's position is uninitialized.

Testing, QA instruction

Run roslaunch buggy sim_2d_2buggies.launch and roslaunch buggy sim_2d_single.launch. Both simulations should work correctly and maintain a data rate above ~50 hz in the steering angle topic.