sas
Modularised monitoring, logging, and control of robots.
Loading...
Searching...
No Matches
test_datalogger_client_server Namespace Reference

Functions

 rclpy_context ()
 _pump (client_node, datalogger)
 _wait_until (predicate, client_node, datalogger, timeout=TIMEOUT)
 client_server_pair (rclpy_context)
 _sample (datalogger, key)
 test_log_scalar (client_server_pair)
 test_log_vector (client_server_pair)
 test_log_matrix (client_server_pair)
 test_log_string (client_server_pair)
 test_multiple_updates_accumulate (client_server_pair)
 test_save_persists_mat_file (client_server_pair, tmp_path)

Variables

float TIMEOUT = 15.0

Detailed Description

Round-trip tests between the DataloggerClient and the SASDatalogger node.

The C++ client publishes sas_msgs/LogDatum messages on /sas_datalogger/log;
the Python SASDatalogger subscribes and accumulates them, and can persist
the result to a MATLAB file via save().

Function Documentation

◆ _sample()

_sample ( datalogger,
key )
protected
Return the most recent logged sample for key as floats, or None.

◆ client_server_pair()

client_server_pair ( rclpy_context)
Yield a connected (DataloggerClient, SASDatalogger) pair.

◆ rclpy_context()

rclpy_context ( )
Initialize the ROS context once for the whole module.