firmware.scripts package

Submodules

firmware.scripts.bionics_scripts module

firmware.scripts.freeze module

firmware.scripts.madgwick_imu module

firmware.scripts.move_legs module

Motor Testing Module for Robot Control.

This module provides functionality to test motors of a robot using a configuration file.

Functions:
test_motor(robot: Robot, config: Dict, motor_num: int) -> None:

Test a specific motor of the robot based on the provided configuration.

main() -> None:

The main function to initialize the robot, zero out its position, and run motor tests.

The script initializes a Robot object with a specific configuration file and setup, then performs motor testing operations.

Usage:

Run this script directly to execute the main function, which will initialize the robot and run the motor tests.

firmware.scripts.move_legs.degrees_to_radians(degrees)[source]
Return type:

float

firmware.scripts.move_legs.mac()[source]
Return type:

None

firmware.scripts.move_legs.main()[source]
Return type:

None

firmware.scripts.move_legs.test_motor(robot, config, motor_num)[source]
Return type:

None

firmware.scripts.move_legs.test_torque_control(robot, config)[source]
Return type:

None

firmware.scripts.read_error module

firmware.scripts.reset module

firmware.scripts.robot_controller module

Simple robot controller module.

Todo: 1. add config and init 2. full body 3. tests

class firmware.scripts.robot_controller.Robot(setup='left_arm')[source]

Bases: object

static calculate_gripper_position(val)[source]
Return type:

float

static filter_motor_values(values, max_val)[source]
Return type:

List[float]

get_motor_positions()[source]
Return type:

Dict[str, List[float]]

set_position(new_positions, offset=None)[source]
Return type:

None

zero_out()[source]
Return type:

None

firmware.scripts.robot_controller.rad_to_deg(rad)[source]
Return type:

float

firmware.scripts.robstride_scripts module

Script to test Robstride firmware.

firmware.scripts.robstride_scripts.main()[source]
Return type:

None

firmware.scripts.show_imu module

Simple script to log the IMU values.

firmware.scripts.show_imu.console(imu, kf)[source]
Return type:

None

firmware.scripts.show_imu.live_plot(args, imu, kf)[source]
Return type:

None

firmware.scripts.show_imu.main()[source]
Return type:

None

firmware.scripts.single_motor module

firmware.scripts.tick module

firmware.scripts.wave module

firmware.scripts.write_current_positions_as_zero module

Module contents