pyrcf.components.controller_manager.command_accumulators
Accumulation policies will decide how control commands from multiple controllers (if present) in the same control loop will be combined before sending them to the robot.
Submodules
Classes
Accumulation policies are functions that takes in commands from two controllers |
|
This accumulation policy simply overrides the command from all controllers with the latest |
Package Contents
- class pyrcf.components.controller_manager.command_accumulators.CommandAccumulatorBase
Bases:
abc.ABCAccumulation policies are functions that takes in commands from two controllers and decides how to generate a single command to be sent to the robot.
NOTE: this should ideally be done at joint level, but we are simplifying by doing accumulation at robot-level instead.
- abstract accumulate(commands=List[RobotCmd]) pyrcf.core.types.robot_io.RobotCmd
Accumulate the specified commands into a single command to be sent to the robot.
- class pyrcf.components.controller_manager.command_accumulators.SimpleCmdOverride
Bases:
CommandAccumulatorBaseThis accumulation policy simply overrides the command from all controllers with the latest one.
- accumulate(commands=List[RobotCmd]) pyrcf.core.types.robot_io.RobotCmd
Accumulate the specified commands into a single command to be sent to the robot.