Skip to main content

Package to control CTU/CIIRC robots CRS93 and CRS97 via MARS control unit.

Project description

CRS robots control at CTU/CIIRC

Package to control CTU/CIIRC robots CRS93 and CRS97 via MARS control unit.

Installation

pip install ctu_crs

Simple python script to control the robot

from ctu_crs import CRS93 # or CRS97
robot = CRS93()  # set argument tty_dev=None if you are not connected to robot,
# it will allow you to compute FK and IK offline
robot.initialize()  # initialize connection to the robot, perform hard and soft home
q = robot.get_q()  # get current joint configuration
robot.move_to_q(q + [0.1, 0.0, 0.0, 0.0, 0.0, 0.0])  # move robot all values in radians
robot.wait_for_motion_stop() # wait until the robot stops
robot.close()  # close the connection

Step-by-Step Procedure for Operating the Robot

  • Power On the Robot Turn on the robot using the red switch on the front panel of the control unit (the switch will light up). Press the yellow Arm Power button (a yellow LED will light up above it).
  • Initialize Communication and Setup in Python Run the following commands to initiate communication and perform necessary setup:
from ctu_crs import CRS93 # or CRS97
robot = CRS93()  # set argument tty_dev=None if you are not connected to robot,
# it will allow you to compute FK and IK offline
robot.initialize()  # initialize connection to the robot, perform hard and soft home
  • Move the Robot After initialization, you can continue with your desired commands for operating the robot.

  • End of Session - Return Robot to Home Position To finish working and return the robot to the home position, execute:

robot.soft_home()
robot.close()  # close the connection

Turn off the robot by switching off the red rocker switch on the front panel.

Accessing the Robot Within the Safety Cage

If you need to work inside the protective cage: Stop the robot (wait until movement stops completely). You can check with:

robot.in_motion()

Run the following command to release the robot:

robot.release()

This will engage the brakes and disconnect feedback. Be cautious, as the robot arm might slightly drop, so avoid performing this command directly above the work surface. Open the cage door (the yellow Arm Power LED will turn off).

Emergency Stop Procedure

If the robot behaves unexpectedly, immediately press the Emergency Stop button (red mushroom-shaped button).

Restoring Operation After Emergency Stop or Working Inside the Cage

Unlock the emergency stop by pressing the blue button on the side of the emergency button, or close the cage door if open. Press the Motion Stop button. Press the yellow Arm Power button (the yellow Arm Power LED will turn on). Resume sending movement commands to the robot. If the motor enters an error state (indicated by a flashing green status LED above the motor’s letter and a red error LED), reset the motor state with:

robot.reset_motors()

Note: Re-homing the robot is not necessary, even after activating the emergency stop or opening the cage door, as long as the control unit is not powered off.

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

ctu_crs-1.0.1.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

ctu_crs-1.0.1-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file ctu_crs-1.0.1.tar.gz.

File metadata

  • Download URL: ctu_crs-1.0.1.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.20.0.post1 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for ctu_crs-1.0.1.tar.gz
Algorithm Hash digest
SHA256 5cdc6d39e98e68b5e7eac281c96c7bdbe30c7ececdaa7da4b862d77d095c2cb5
MD5 2aef9b98d96d76baa9bfbb0010f0af4d
BLAKE2b-256 10445db3b286ab40f16d3ac6f850ff8b770c95f005c03542e1de2fd94d0759c8

See more details on using hashes here.

File details

Details for the file ctu_crs-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: ctu_crs-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.20.0.post1 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for ctu_crs-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4fa9415255ed5a455c21b3b2500191109e39faccb50c68efded13b648841a8e0
MD5 5f4256e3bb6475bed6d9a77a9090bbe1
BLAKE2b-256 efdd1c6e384d2cacff8bd41c42af853fab9aac4df6edffda9d03a5c03699962b

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