Skip to main content

This is Python API for Agilex limo

This is a python API for serial communication with Agilex Robotics-limo

Installation

Notes:
Make sure that python version >=3.4. if you have python3 and python2 ,please use python3

pip

pip3 install pylimo
Notes:
Make sure that pip3 version >= 9.0.0.
pip3 -V     																				 #cheak the pip3 version
python3 -m pip install --upgrade pip                          #updata pip3

import to your project

#!/usr/bin/env python3
# coding=utf-8
from pylimo import limo
limo=limo.LIMO()

function list:

    EnableCommand()
    SetMotionCommand()
    GetLinearVelocity()
    GetAngularVelocity()
    GetSteeringAngle()
    GetLateralVelocity()
    GetControlMode()
    GetBatteryVoltage()
    GetErrorCode()
    GetRightWheelOdem()
    GetLeftWheelOdem()
    GetIMUAccelData()
    GetIMUGyroData()
    GetIMUYawData()
    GetIMUPichData()
    GetIMURollData()

EnableCommand

  • Prototype: EnableCommand()
  • Description: Enable command and control mode.

SetMotionCommand

  • Prototype: SetMotionCommand()
  • Description:Send Version Request to robots.
  • Parameters
    • linear_vel:(float)
    • angular_vel:(float) diff
    • lateral_velocity:(float) manamu
    • steering_angle:(float) ackerman

GetLinearVelocity

  • Prototype: GetLinearVelocity()
  • Description:Get the linear velocity from limo
  • Return:linear velocity

GetAngularVelocity

  • Prototype: GetAngularVelocity()
  • Description:Get the angular velocity from limo .
  • Return:angular velocity

GetSteeringAngle

  • Prototype: GetSteeringAngle()
  • Description:Get the steering angle from limo .
  • Return:steering angle

GetLateralVelocity

  • Prototype: GetLateralVelocity()
  • Description:Get the lateral velocity from limo .
  • Return:lateral velocity

GetControlMode

  • Prototype: GetControlMode()
  • Description:Get the control mode from limo .
  • Return:control mode

GetLeftWheelOdeom

  • Prototype: GetLeftWheelOdeo()
  • Description:get robots LeftWheelOdom .
  • Return:LeftWheelOdom

GetRightWheelOdom

  • Prototype: GetRightWheelOdom()
  • Description:get robots RightWheelOdom .
  • Return:RightWheelOdeom

GetBatteryVoltage

  • Prototype: GetBatteryVoltage()
  • Description:Get the battery voltage from limo
  • Return:battery voltage

GetErrorCode

  • Prototype: GetErrorCode()
  • Description:Get the error code from limo
  • Return:error code

GetIMUAccelData

  • Prototype: GetIMUAccelData()
  • Description:Get the IMU accle data form limo.
  • Return:IMU_accel_x,IMU_accel_y,IMU_accel_z

GetIMUGyroData

  • Prototype: GetIMUGyroData()
  • Description:Get the IMU gyro data form limo.
  • Return:IMU_gyro_x,IMU_gyro_y,IMU_gyro_z

GetIMUYaw

  • Prototype: GetIMUYaw()
  • Description:Get the IMU yaw data form limo.
  • Return:IMU_yaw

GetIMUPitch

  • Prototype: GetIMUPitch()
  • Description:Get the IMU pitch data form limo.
  • Return:IMU_pitch

GetIMURoll

  • Prototype: GetIMURoll()
  • Description:Get the IMU roll data form limo.
  • Return:IMU_roll

Example

Note:

For safety, please ensure that the robot's wheels are off the ground

1.Move Robot

#!/usr/bin/env python3
# coding=UTF-8
from pylimo import limo
import time
limo=limo.LIMO()
limo.EnableCommand()
while True:
    limo.SetMotionCommand(linear_vel=0.1,angular_vel=-0.01)
    time.sleep(0.1)

2.get message

#!/usr/bin/env python3
# coding=UTF-8
from pylimo import limo
import time
limo=limo.LIMO()
limo.EnableCommand()
while True:
    time.sleep(0.1)
    print(limo.GetLinearVelocity())

Metadata

Release files for pylimo 0.3.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pylimo 0.3.5
File Size Uploaded Provenance
pylimo-0.3.5.tar.gz 10.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pylimo 0.3.5
File Interpreter ABI Platform
pylimo-0.3.5-py3-none-any.whl Python 3 none any Details

Total release size: 18.9 kB

Release files / pylimo-0.3.5.tar.gz

Download URL pylimo-0.3.5.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ea57383ec6d8478ed9d2f1672fc670abbb040806b447049ddc3bfe1f10783c5b
BLAKE2b-256 checksum
How to use checksums
1c3efb5175064300fb5915484314837317702118a5b2a503cf0b81aeb59ab1e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.9

Release files / pylimo-0.3.5-py3-none-any.whl

Download URL pylimo-0.3.5-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba433c93a937e8ae537f635f455f494d2ecced076557adedd3ecf7bfff890168
BLAKE2b-256 checksum
How to use checksums
803ca5a88614b13dc59f4fdb18d66473e1280ea40a3920c63e0607700d02ed98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.9

Security for pylimo 0.3.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page