Skip to main content

Package encloses methods and data definitions that facilitate the connection of agents in the helyOS framework.

Project description


Logo Logo

helyOS Agent SDK

Methods and data strrctures to connect autonomous vehicles to helyOS.
Explore the docs »

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 via RabbitMQ.

List of features

  • RabbitMQ client for communication with helyOS core.
  • Support for both AMQP and MQTT protocols.
  • Definition of agent and assignment status.
  • Easy access to helyOS assignments and instant actions through callbacks.
  • SSL support and application-level security with RSA signature.
  • Automatic reconnection to handle connection disruptions.

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.

License

This project is licensed under the MIT License

Project details


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.8.0.tar.gz (21.2 kB view details)

Uploaded Source

Built Distribution

helyos_agent_sdk-0.8.0-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

Details for the file helyos_agent_sdk-0.8.0.tar.gz.

File metadata

  • Download URL: helyos_agent_sdk-0.8.0.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/23.6.0

File hashes

Hashes for helyos_agent_sdk-0.8.0.tar.gz
Algorithm Hash digest
SHA256 700ac410935216b75e81f257909de733a08f3d87bddc7660cef1c2bd03cb7612
MD5 d47e306dcafa96db952681bde9b022c2
BLAKE2b-256 db4afc3fbd69d45cbd5df3b0ed8aa6dbd2445988d5aff8c97cdda3ba7559603d

See more details on using hashes here.

File details

Details for the file helyos_agent_sdk-0.8.0-py3-none-any.whl.

File metadata

File hashes

Hashes for helyos_agent_sdk-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6e6129011a01fcb838bcbda4438c5ecd91c052192951462fb9f507bf140fff22
MD5 04b5f9c690e756fb648d07225593db45
BLAKE2b-256 398ac529fee2afbee2d4e02882d99c0981e582086a0d0152ffc9e0524833fe4b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page