pyrcf.components.controller_manager.command_accumulators.cmd_accumulation_policies
Accumulation 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.
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 |
|
This policy combines the commands from all controllers/agents. |
Module Contents
- class pyrcf.components.controller_manager.command_accumulators.cmd_accumulation_policies.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.cmd_accumulation_policies.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.
- class pyrcf.components.controller_manager.command_accumulators.cmd_accumulation_policies.CmdMuxer(allow_conflicting_interfaces: bool = False)
Bases:
CommandAccumulatorBaseThis policy combines the commands from all controllers/agents.
- _cmd: pyrcf.core.types.robot_io.RobotCmd = None
- _allow_conflicts
- accumulate(commands=List[RobotCmd]) pyrcf.core.types.robot_io.RobotCmd
Accumulate the specified commands into a single command to be sent to the robot.