Skip to content

Moved the StepGeneratorCommandInputManager and the StatusMessageOutputManager to AvatarStepGeneratorThread so we don't have getters everywhere. - #1323

Open
PotatoPeeler3000 wants to merge 27 commits into
developfrom
cleanup/moving-managers-up
Open

Moved the StepGeneratorCommandInputManager and the StatusMessageOutputManager to AvatarStepGeneratorThread so we don't have getters everywhere.#1323
PotatoPeeler3000 wants to merge 27 commits into
developfrom
cleanup/moving-managers-up

Conversation

@PotatoPeeler3000

Copy link
Copy Markdown
Contributor

No description provided.

rjgriffin42 and others added 27 commits March 17, 2026 21:30
…tManager to AvatarStepGeneratorThread so we don't have getters everywhere.
return group;
}

public StepGeneratorCommandInputManager getStepGeneratorCommandInputManager()

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do have to pass these objects in


private final CommandInputManager controllerCommandInputManager;

private final StepGeneratorCommandInputManager commandInputManager = new StepGeneratorCommandInputManager();

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to pass these down then create them here and pass them up

statusMessageOutputManager,
null,
csgTime);
csgCommandInputManager = steppingManager.getStepGeneratorCommandInputManager();

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ya this felt pretty confusing to me

firstTick.set(false);
}

csgCommandInputManager.update(csgTime.getValue());

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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());

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes the registry structure but its minor

Base automatically changed from feature/cleanup_csg to develop April 6, 2026 23:17
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.

2 participants