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.
- Check-in method.
- Agent and assignment status definitions.
- Easy access to helyOS assignments via callbacks.
- Application-level encryption.
Install
pip install helyos_agent_sdk
Usage
os.environ['AGENTS_UL_EXCHANGE'] = "xchange_helyos.agents.ul"
os.environ['AGENTS_DL_EXCHANGE'] = "xchange_helyos.agents.dl"
os.environ['AGENT_ANONYMOUS_EXCHANGE'] = "xchange_helyos.agents.anonymous"
from helyos_agent_sdk import HelyOSClient, AgentConnector
# Check in
helyOS_client = HelyOSClient(rabbitmq_host, rabbitmq_port, uuid=AGENT_UID)
helyOS_client.perform_checkin(yard_uid='1', agent_data=agent_data, status="free")
helyOS_client.get_checkin_result()
# Communication
agent_connector = AgentConnector(helyOS_client)
agent_connector.publish_sensors(x=-30167, y=3000, z=0, orientations=[1500, 0], sensor= {"my_sensor": 12})
# ... #
agentConnector.publish_state(status, resources, assignment_status)
# ... #
agentConnector.consume_instant_action_messages(my_reserve_callback, my_release_callback, my_cancel_assignm_callback, any_other_callback)
agentConnector.consume_assignment_messages(my_assignment_callback)
agentConnector.start_consuming()
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.1.4.tar.gz
(10.2 kB
view hashes)
Built Distribution
Close
Hashes for helyos_agent_sdk-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07cc3ac4ad26846c74c12c636c708fc53ee5010ee347c86ce2ac6e916500ace1 |
|
MD5 | baff04b4407b11f2f26d3f8cfc10c533 |
|
BLAKE2b-256 | 79622a3976fd4a2edf07f99f8a83590f3236b808a6c9a0801b0c94156347011a |