Robot
Inherits from:ABC
Abstract base class for all robot implementations.
Provides core functionality including sensor management, optional WebSocket/REST servers,
safety monitoring, and automatic cleanup. All robot implementations should
inherit from this class and implement the abstract methods.
Attributes:
sensors (dict): Dictionary of attached sensors keyed by name
server_port (int): Port for WebSocket/REST server
enable_websocket (bool): Whether to enable WebSocket endpoint
enable_rest (bool): Whether to enable REST endpoints
init
Arguments
addSensor
Arguments
getImage
Arguments
Returns
getState
Returns
Current state of the robot including position, orientation, velocity, and other relevant state information
getPosition
Returns
Current position of the robot in world coordinates, or None if position is unavailable
getOrientation
Returns
Current orientation of the robot in world coordinates, or None if orientation is unavailable
moveByVelocity
Arguments