SubclassDocumentation Index
Fetch the complete documentation index at: https://inorbitinc.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
inorbit_connector.connector.FleetConnector to manage multiple robots simultaneously.
Constructor
config(ConnectorConfig): The connector configuration containing the fleet
register_user_scripts(bool): Automatically register user scripts. Default:Falsedefault_user_scripts_dir(str): Default directory for user scripts. Default:~/.inorbit_connectors/connector-{class_name}/local/create_user_scripts_dir(bool): Create the user scripts directory if it doesn’t exist. Default:Falseregister_custom_command_handler(bool): Automatically register the command handler. Default:True
Required Methods
Subclasses must implement the same abstract methods as single-robot connectors, with one difference:_inorbit_robot_command_handler()
:::
See the Commands Handling chapter for more details.
:::
Handle commands for a specific robot. This method is automatically registered if register_custom_command_handler is True (default).
CommandFailure to provide specific error details that will be displayed in InOrbit’s audit logs and action execution details.
Fleet Management
Accessing Robot IDs
Access the list of robot IDs in the fleet:Updating the Fleet
You can update the fleet configuration during_connect() by calling the update_fleet() method. This is useful for dynamically setting the robots list before the connector starts, for example, when provisioning robots from fleet manager data instead of hardcoded values in the config files:
update_fleet() method updates the fleet configuration and initializes sessions for all robots.
Publishing Methods
All publishing methods require arobot_id parameter. See the Publishing Guide for detailed information.
publish_robot_pose(robot_id, x, y, yaw, frame_id): Publish pose for a specific robotpublish_robot_odometry(robot_id, **kwargs): Publish odometry for a specific robotpublish_robot_key_values(robot_id, **kwargs): Publish key-values for a specific robotpublish_robot_system_stats(robot_id, **kwargs): Publish system stats for a specific robotpublish_robot_map(robot_id, frame_id, is_update=False): Publish map for a specific robot
Advanced Methods
_get_robot_session()
Access the underlying RobotSession from the InOrbit Edge SDK for a specific robot. Use this for advanced use cases not covered by the connector API.
Robot Online Status
Override_is_fleet_robot_online() to provide custom online status checks:
Example Execution Loop
Lifecycle
The lifecycle methods are the same as single-robot connectors:start(): Start the connectorjoin(): Block until stoppedstop(): Stop the connector
Examples
- Simple fleet connector: examples/simple-fleet-connector/connector.py
- Fleet connector (CLI): examples/fleet-connector/
- Examples index: examples/README.md