launch_testing_ros.data_republisher module

class launch_testing_ros.data_republisher.DataRepublisher(node, listen_topic, publish_topic, msg_type, transform_fn)

Bases: object

Republish mesasges with a transform function applied.

get_num_received()

Get the number of messages received on the listen_topic.

get_num_republished()

Get the number of messages published on publish_topic.

This may be lower than get_num_received if the transform_fn indicated a message should be dropped

get_republished()

Get a list of all of the transformed messages republished.

shutdown()

Stop republishing messages.