Moved the StepGeneratorCommandInputManager and the StatusMessageOutputManager to AvatarStepGeneratorThread so we don't have getters everywhere. - #1323
Conversation
…ng a new message type
…tManager to AvatarStepGeneratorThread so we don't have getters everywhere.
| return group; | ||
| } | ||
|
|
||
| public StepGeneratorCommandInputManager getStepGeneratorCommandInputManager() |
There was a problem hiding this comment.
These getters were setting the object in the AvatarStepGeneratorThread, and then the object in AvatarStepGeneratorThread had getters as well. So by moving the objects themselves to the AvatarStepGeneratorThread we don't need to do this
| WalkingControllerParameters walkingControllerParameters, | ||
| StatusMessageOutputManager controllerStatusMessageOutputManager, | ||
| CommandInputManager controllerCommandInputManager, | ||
| StepGeneratorCommandInputManager commandInputManager, |
There was a problem hiding this comment.
We do have to pass these objects in
|
|
||
| private final CommandInputManager controllerCommandInputManager; | ||
|
|
||
| private final StepGeneratorCommandInputManager commandInputManager = new StepGeneratorCommandInputManager(); |
There was a problem hiding this comment.
Better to pass these down then create them here and pass them up
| statusMessageOutputManager, | ||
| null, | ||
| csgTime); | ||
| csgCommandInputManager = steppingManager.getStepGeneratorCommandInputManager(); |
There was a problem hiding this comment.
Ya this felt pretty confusing to me
| firstTick.set(false); | ||
| } | ||
|
|
||
| csgCommandInputManager.update(csgTime.getValue()); |
There was a problem hiding this comment.
Need to update here now because this is where the object lives, now everything about the csgCommandInputManager lives in this class.
| RealtimeROS2Node ros2Node) | ||
| { | ||
| this.fullRobotModel = drcRobotModel.createFullRobotModel(); | ||
| csgRegistry.addChild(csgCommandInputManager.getRegistry()); |
There was a problem hiding this comment.
Changes the registry structure but its minor
No description provided.