Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fake lidar validation senson assert. #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions andino_tests/test/andino_tests/test_sensor_verification.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,16 +160,14 @@ def wait_for_message(

def test_sensors_are_reporting(self):
"""Evaluates that sensors are reporting messages."""
is_lidar_reporting = self.wait_for_message(
LaserScan, self.SCAN_TOPIC, time_to_wait=self.MAX_TOPIC_TIMEOUT)
is_odom_reporting = self.wait_for_message(
Odometry, self.ODOM_TOPIC, time_to_wait=self.MAX_TOPIC_TIMEOUT)
is_joint_states_reporting = self.wait_for_message(
JointState, self.JOINT_STATES_TOPIC, time_to_wait=self.MAX_TOPIC_TIMEOUT)
is_camera_reporting = self.wait_for_message(
Image, self.CAMERA_TOPIC, time_to_wait=self.MAX_TOPIC_TIMEOUT)

self.assertTrue(is_lidar_reporting, 'Lidar topic has not been received.')
self.assertTrue(False, 'Lidar topic has not been received.')
self.assertTrue(is_odom_reporting, 'Odom topic has not been received.')
self.assertTrue(is_joint_states_reporting, 'Joint states topic has not been received.')
self.assertTrue(is_camera_reporting, 'Camera topic has not been received.')
Loading