Karljohan99 / autoware_mini_practice

MIT License
0 stars 0 forks source link

Practice 6 - simple_local_planner - code comments #10

Closed geopimik closed 4 months ago

geopimik commented 5 months ago

Please fix following:

  1. I might have given you the wrong hint in the practice. Here you check if self.current_position is not None. And later you use it in the callback (line 102).

  2. You could move transforming velocities after the next if. Do it only for those objects that intersect our path. Will gain some milliseconds https://github.com/Karljohan99/autoware_mini_practice/blob/a09abb4acfa7dc931d7fc454a4906f6bcbae5884/practice_6/nodes/planning/local/simple_local_planner.py#L133-L143

  3. It can be done like this, but it seems a bit weird. It is like the object_distances is boolean. https://github.com/Karljohan99/autoware_mini_practice/blob/a09abb4acfa7dc931d7fc454a4906f6bcbae5884/practice_6/nodes/planning/local/simple_local_planner.py#L171-L172

Karljohan99 commented 5 months ago

Fixed all of them in 00e500c

geopimik commented 4 months ago

OK