pyrobosim.sensors.types.Sensor
- class pyrobosim.sensors.types.Sensor
Generic sensor class that helps with type hinting.
When implementing a new sensor, you should subclass from this class.
Methods
__init__()Returns the coordinates of line segments to currently display for the sensor.
Returns the latest measurement from the sensor.
Sets up and returns the artists for visualizing the sensor.
Starts the thread defined by your sensor's implementation of thread_function().
Stops the actively running sensor thread.
Defines the sensor update function to run in a background thread.
to_dict()Serializes the sensor to a dictionary.
update()Performs the sensor calculation.
Updates the artists.
Attributes
List of registered sensor plugins.
The name of the plugin.