sea-bass / pyrobosim

ROS 2 enabled 2D mobile robot simulator for behavior prototyping.
https://pyrobosim.readthedocs.io/
MIT License
220 stars 37 forks source link

Add more coverage to `World` class tests #138

Closed sea-bass closed 1 year ago

sea-bass commented 1 year ago

This PR addresses the missing test coverage highlighted in https://github.com/sea-bass/pyrobosim/issues/94 -- namely tests around some methods of the World class that were not covered in the existing set of tests.

As always, this fixes some additional issues found along the way as well.

Changes to world.py are actually very minor (except for one bug in collides_with_robots) -- I just moved some functions around to be in the right "sections" next to related functions.

Closes https://github.com/sea-bass/pyrobosim/issues/94.