No project description provided
Project description
helyOS Agent SDK
Methods and data strrctures to connect autonomous vehicles to helyOS.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
About The Project
The helyos-agent-sdk python package encloses methods and data structures definitions that facilitate the connection to helyOS core through rabbitMQ.
List of features
- RabbitMQ client to communicate with helyOS.
- AMQP and MQTT Protocol.
- Agent and assignment status definitions.
- Easy access to helyOS assignments via callbacks.
- Application-level encryption.
Install
pip install helyos_agent_sdk
Usage
from helyos_agent_sdk import HelyOSClient, AgentConnector
# Connect via AMQP
helyOS_client = HelyOSClient(rabbitmq_host, rabbitmq_port, uuid=AGENT_UID)
# Or connect via MQTT
# helyOS_client = HelyOSMQTTClient(rabbitmq_host, rabbitmq_port, uuid=AGENT_UID)
helyOS_client.connnect(username, password)
# Check in yard
initial_agent_data = {'name': "vehicle name", 'pose': {'x':-30167, 'y':-5415, 'orientations':[0, 0]}, 'geometry':{"my_custom_format": {}}}
helyOS_client.perform_checkin(yard_uid='1', agent_data=initial_agent_data, status="free")
helyOS_client.get_checkin_result() # yard data
# Communication
agent_connector = AgentConnector(helyOS_client)
agent_connector.publish_sensors(x=-30167, y=3000, z=0, orientations=[1500, 0], sensor= {"my_custom_format": {}})
# ... #
agent_connector.publish_state(status, resources, assignment_status)
# ... #
agent_connector.consume_instant_action_messages(my_reserve_callback, my_release_callback, my_cancel_assignm_callback, any_other_callback)
agent_connector.consume_assignment_messages(my_assignment_callback)
agent_connector.start_listening()
Contributing
Keep it simple. Keep it minimal.
Authors
- Carlos E. Viol Barbosa
- ...
License
This project is licensed under the MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
helyos_agent_sdk-0.7.2.tar.gz
(20.8 kB
view hashes)
Built Distribution
Close
Hashes for helyos_agent_sdk-0.7.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30b07dd6040fe591ecffabfab9e716aa8a396bbcf4193ea984283124f8c80d08 |
|
MD5 | 2a3e9b3f971b673ce055c5bf8b80a2fe |
|
BLAKE2b-256 | 7f4ce97220bc3fcad9b42e357af3065d1a0da2318e4234f41dfc86413d68ccfc |