Skip to content

Documentation for ros2_control - #36

Merged
bmagyar merged 12 commits into
ros-controls:masterfrom
destogl:patch-3
Jan 7, 2021
Merged

bmagyar merged 12 commits into
ros-controls:masterfrom
destogl:patch-3

Conversation

@destogl

@destogl destogl commented Dec 13, 2020

Copy link
Copy Markdown
Member

No description provided.

@destogl
destogl marked this pull request as ready for review January 5, 2021 19:45
@destogl
destogl requested a review from bmagyar January 5, 2021 19:47

@bmagyar bmagyar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Very nice in general, I've added a few things to consider

#. Implement `ActuatorInterface`_, `SensorInterface`_ or `SystemInterface`_ classes as follows:

#. In the constructor, initialize all variables needed for communication with your hardware or define the default one.
#. In the configure function, read all the parameters your hardware needs from the parsed URDF snippet (i.e., from the `HardwareInfo`_ structure). Here you can cross-check if all joints and interfaces in URDF have allowed values or a combination of values.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

these components can do their own parsing and are not limited to HardwareInfo

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Is it so? I am not sure what you mean. We provide all the data in the HardwareInfo structure. so you are actually not parsing, but iterating through the parsed structure.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You are right, I didn't remember precisely. This however is actually a good opportunity to lay out an example URDF that has a couple of custom parameters and we could show how these are appearing for a SystemInterface implementation. Perhaps a next ticket? I'd be happy to merge this as-is

@bmagyar

bmagyar commented Jan 7, 2021

Copy link
Copy Markdown
Member

Thanks very much for this!

@bmagyar
bmagyar merged commit 39d6ca9 into ros-controls:master Jan 7, 2021
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