client

Module contents

Submodules

plico_motor.client.motor_client module

class plico_motor.client.motor_client.MotorClient(rpcHandler, sockets, axis=1)

Bases: AbstractMotorClient, HackerableClient, ServerInfoClient

get_bandwidth_mode(timeout_in_sec=3.0)

Get the current bandwidth mode of the filter.

Returns:

Current bandwidth mode (e.g., 1=BLACK, 2=WIDE, 4=MEDIUM, 8=NARROW).

Return type:

int

home(timeout_in_sec=10.0)
move_by(position_in_steps, timeout_in_sec=10.0)
move_to(position_in_steps, timeout_in_sec=10.0)
position()
set_bandwidth_mode(mode: int, timeout_in_sec=10.0)

Set the bandwidth mode of the filter.

Parameters:

mode (int) – Desired bandwidth mode.

set_velocity(velocity_in_steps_per_second, timeout_in_sec=10.0)
snapshot(prefix, timeout_in_sec=3.0)
status(timeout_in_sec=3.0)
velocity()

plico_motor.client.abstract_motor_client module

class plico_motor.client.abstract_motor_client.AbstractMotorClient

Bases: object

abstractmethod get_bandwidth_mode()

Get the current bandwidth mode of the filter.

Returns:

Current bandwidth mode (e.g., 1=BLACK, 2=WIDE, 4=MEDIUM, 8=NARROW).

Return type:

int

abstractmethod home()
abstractmethod move_by(position_in_steps)
abstractmethod move_to(position_in_steps)
abstractmethod position()
abstractmethod set_bandwidth_mode(mode: int)

Set the bandwidth mode of the filter.

Parameters:

mode (int) – Desired bandwidth mode.

abstractmethod set_velocity(velocity_in_steps_per_second)
abstractmethod snapshot(prefix='MY_MOTOR')
abstractmethod status()
abstractmethod velocity()