Breadcrumbs

get_robot_speed_mode()

Feature

This is a function to check the current speed mode (normal mode, deceleration mode) information from the robot controller.

Return

Value

Description

robot_speed

robot speed mode

0 : normal mode

1 : reduced mode

Example

Bash
if get_robot_speed_mode() == SPEED_REDUCED_MODE:
   # When in deceleration mode, change to constant speed mode
set_robot_speed_mode(SPEED_NORMAL_MODE)