hello-robot / stretch_ros2

ROS 2 packages for the Stretch mobile manipulators from Hello Robot Inc.
https://docs.hello-robot.com/0.2/stretch-tutorials/ros2/
51 stars 19 forks source link

Add pytest tests to stretch_core #91

Closed hello-chintan closed 7 months ago

hello-chintan commented 7 months ago

This PR adds tests to the stretch_core package using the launch_pytest framework. The idea is to verify that once nodes are launched the interfaces are active and performant. All topics are checked for existence and their publish rates. All services are checked if they are callable. All actions are checked if they exist and can be called at a specific rate

The stretch_core package tests the following nodes:

To test, use colcon test --packages-select stretch_core.

hello-chintan commented 7 months ago

Merged with deprecated branch iron by mistake! Merging into humble through this PR.

binitshah commented 7 months ago

Nice! I'm been meaning to write tests like these. Thank you for putting this together!!