robot.helpers package

Submodules

robot.helpers.coordinate module

class robot.helpers.coordinate.Coordinate(robot_id, x, y, heading, mqtt_client)

Bases: IMqttHandler

get_heading()
Return type:

float

get_heading_rad()
Return type:

float

get_x()
Return type:

float

get_y()
Return type:

float

handle_subscription(robot, message)
Return type:

None

print()
Return type:

None

publish_coordinate()
Return type:

None

set_coordinate(x, y)
Return type:

None

set_coordinate_heading(x, y, heading)
Return type:

None

set_heading(heading)
Return type:

None

set_heading_rad(heading)
Return type:

None

set_x(x)
Return type:

None

set_y(y)
Return type:

None

robot.helpers.motion_controller module

class robot.helpers.motion_controller.MotionController(coordinate=None)

Bases: object

ADDITIONAL_DELAY = 500
CM_2_MM = 10
SEC_2_MS = 1000
SPEED_FACTOR = 0.1
move(left_speed, right_speed, duration=None)
Return type:

None

rotate(speed, duration=None)
Return type:

None

rotate_degree(speed, degree)
Return type:

None

rotate_radians(speed, radians)
Return type:

None

robot.helpers.robot_mqtt module

class robot.helpers.robot_mqtt.RobotMQTT(robot_id, mqtt, reality)

Bases: object

handle_subscription(robot, m)
Return type:

None

robot_create(x, y, heading)
Return type:

None

Module contents

Helper utilities for robot library.

class robot.helpers.Coordinate(robot_id, x, y, heading, mqtt_client)

Bases: IMqttHandler

get_heading()
Return type:

float

get_heading_rad()
Return type:

float

get_x()
Return type:

float

get_y()
Return type:

float

handle_subscription(robot, message)
Return type:

None

print()
Return type:

None

publish_coordinate()
Return type:

None

set_coordinate(x, y)
Return type:

None

set_coordinate_heading(x, y, heading)
Return type:

None

set_heading(heading)
Return type:

None

set_heading_rad(heading)
Return type:

None

set_x(x)
Return type:

None

set_y(y)
Return type:

None

class robot.helpers.MotionController(coordinate=None)

Bases: object

ADDITIONAL_DELAY = 500
CM_2_MM = 10
SEC_2_MS = 1000
SPEED_FACTOR = 0.1
move(left_speed, right_speed, duration=None)
Return type:

None

rotate(speed, duration=None)
Return type:

None

rotate_degree(speed, degree)
Return type:

None

rotate_radians(speed, radians)
Return type:

None

class robot.helpers.RobotMQTT(robot_id, mqtt, reality)

Bases: object

handle_subscription(robot, m)
Return type:

None

robot_create(x, y, heading)
Return type:

None