Skip to content

Dataclass for storing command IDs#48

Merged
amessing-bdai merged 2 commits intorai-opensource:mainfrom
heuristicus:imp/command-dataclass
Jul 5, 2023
Merged

Dataclass for storing command IDs#48
amessing-bdai merged 2 commits intorai-opensource:mainfrom
heuristicus:imp/command-dataclass

Conversation

@heuristicus
Copy link
Copy Markdown
Contributor

@heuristicus heuristicus commented Jun 30, 2023

The last_*_command attributes of the wrapper are associated with each other, but not in any proper way. This adds a dataclass to hold these attributes instead.

Also adds properties to get/set the values of these attributes. This means that AsyncIdle is no longer accessing protected members of the wrapper.

This is also required for modularity purposes. The docking module sets the docking command information, and other modules may want to set other attributes.

_last_robot_command_feedback was unused so I removed it.

Copy link
Copy Markdown
Contributor

@sktometometo sktometometo left a comment

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor

@amessing-bdai amessing-bdai left a comment

Choose a reason for hiding this comment

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

Looks good. @heuristicus Is this ready to merge?

@heuristicus
Copy link
Copy Markdown
Contributor Author

Yes, this should be good to merge.

@amessing-bdai amessing-bdai merged commit 394e852 into rai-opensource:main Jul 5, 2023
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.

3 participants