Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MPC Specific simulation environment with separate WBCC thread #504

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from

Conversation

Beomyeong
Copy link
Member

@Beomyeong Beomyeong commented Dec 2, 2024

The purpose of this PR is set the simulation structure which is specific to whole-body MPC controller (Crocoddyl repo)
All the factory, high-level controller, contextData, highleveltask is copied or made to run MPC controller independently with regular controller.

Overview
MPCControllerState (in the Crocoddyl repo) calculates the jointOutput in the ControlThread (This will be used in the WBCC later)
The calculated JointOutputDesired is shared through the HumanoidRobotMPCContextData as the wholeBodyControllerCoreDesiredOutPutList.
The wholeBodyControllerCoreDesiredOutPutList is called in HumanoidWholeBodyControllerCoreManager of the WholeBodyControllerCoreThread and then be used to update the actuator input.

Added files

For multi-threading : which will be used when MPC controller runs with regular one

  • AvatarMPCControllerThread
  • AvatarMPCControllerThreadInterface
  • AvatarMPCEstimatorThread
  • AvatarMPCStepGeneratorThread
  • AvatarWholeBodyControllerThread
  • MPCControllerTask
  • MPCEstimatorTask
  • MPCStepGeneratorTask
  • WholeBodyConctrollerCoreTask
  • BarrierScheduledMPCRobotController
  • HumanoidRobotMPCControlTask
  • HumanoidRobotMPCContextData
  • HumanodRobotMPCContextDataFactory
  • ControllerCoreToolBoxDataHolder
  • ControllerCoreCommandDataHolder
  • MPCCrossRobotCommandResolver
  • ControllerCoreOutputDataHolder
  • HumanoidWholeBodyControllerCoreManager

For MPC Specific simulation environment: which will "not" be used when MPC controller runs with regular one

  • SCS2AvatarMPCSimulation
  • SCS2AvatarMPCSimulationFactory
  • MPCWholeBodyControllerCore
  • HighLevelMPCControllerFactoryHelper
  • HumanoidHighLevelMPCControllerManager
  • DoNothingMPCControllerStateFactory
  • FinishedMPCControllerStateTransitionFactory
  • MPCControllerFailedTransitionFactory
  • MPCControllerStateTransitionFactory
  • MPCHighLevelControllerStateFactory
  • MPCHighLevelHumanoidControllerFactory
  • MPCWalkingControllerStateFactory
  • RequestedMPCControllerTransitionFactory
  • DoNothingMPCControllerState
  • MPCHghLevelControllerState
  • MPCWalkingControllerState
  • HighLevelHumanoidMPCControllerPlugin
  • HighLevelHumanoidMPCControllerPlugingFactory
  • MPCControllerComponentBasedFootstepDataMessageGenerator
  • MPCControllerComponentBasedFootstepDataMessageGeneratorFactory
  • MPCControllerHumanoidSteppingPlugin
  • MPCControllerHumanoidSteppingPluginFactory.

@Beomyeong Beomyeong changed the title [WIP]Feature/making scs2 mpc avatar simulation factory MPC Specific simulation environment with separate WBCC thread Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant