Add state_interfaces_broadcaster#2006
Add state_interfaces_broadcaster#2006christophfroehlich merged 24 commits intoros-controls:masterfrom
Conversation
|
This pull request is in conflict. Could you fix it @saikishor? |
0c75da3 to
a0b0b1c
Compare
...aces_state_broadcaster/include/interfaces_state_broadcaster/interfaces_state_broadcaster.hpp
Outdated
Show resolved
Hide resolved
Juliaj
left a comment
There was a problem hiding this comment.
@saikishor, I needed to debug my example code that depends on this controller. I've added the changes made on my machine to make it compile with the updated control_msgs.
...aces_state_broadcaster/include/interfaces_state_broadcaster/interfaces_state_broadcaster.hpp
Outdated
Show resolved
Hide resolved
...aces_state_broadcaster/include/interfaces_state_broadcaster/interfaces_state_broadcaster.hpp
Outdated
Show resolved
Hide resolved
...aces_state_broadcaster/include/interfaces_state_broadcaster/interfaces_state_broadcaster.hpp
Outdated
Show resolved
Hide resolved
...aces_state_broadcaster/include/interfaces_state_broadcaster/interfaces_state_broadcaster.hpp
Outdated
Show resolved
Hide resolved
interfaces_state_broadcaster/test/test_interfaces_state_broadcaster.cpp
Outdated
Show resolved
Hide resolved
interfaces_state_broadcaster/test/test_interfaces_state_broadcaster.cpp
Outdated
Show resolved
Hide resolved
interfaces_state_broadcaster/test/test_interfaces_state_broadcaster.cpp
Outdated
Show resolved
Hide resolved
interfaces_state_broadcaster/test/test_interfaces_state_broadcaster.cpp
Outdated
Show resolved
Hide resolved
interfaces_state_broadcaster/test/test_interfaces_state_broadcaster.hpp
Outdated
Show resolved
Hide resolved
|
Thanks a lot for taking care @Juliaj . I was about to fix it |
Co-authored-by: Julia Jia <juliajster@gmail.com>
Co-authored-by: Julia Jia <juliajster@gmail.com>
Co-authored-by: Julia Jia <juliajster@gmail.com> Co-authored-by: Surya! <thedevmystic@gmail.com>
Co-authored-by: Julia Jia <juliajster@gmail.com>
christophfroehlich
left a comment
There was a problem hiding this comment.
Overall, this LGTM. But some parts of docs/meta package updates are missing:
Thank you @Juliaj for taking time and testing it |
christophfroehlich
left a comment
There was a problem hiding this comment.
btw: Why did you call it interfaces_state_broadcaster instead of state_interfaces_broadcaster?
|
|
||
| Interfaces State Broadcaster | ||
| -------------------------------- | ||
| The Interfaces State Broadcaster publishes the state of specified hardware interfaces that support double data type. |
There was a problem hiding this comment.
This is not 100% true. "is_castable_to_double" is true for all datatypes we currently support, but the get_optional only works for double and bool with additional warning.
We should either limit it to double-only, or support all castable datatypes for real ;)
This is what I started here.
There was a problem hiding this comment.
I would change the logic internally to the code to reflect that
Good question, first I named the project |
Co-authored-by: Christoph Fröhlich <christophfroehlich@users.noreply.github.com>
christophfroehlich
left a comment
There was a problem hiding this comment.
some minor cleanups, rest LGTM
...interfaces_broadcaster/include/state_interfaces_broadcaster/state_interfaces_broadcaster.hpp
Outdated
Show resolved
Hide resolved
state_interfaces_broadcaster/src/state_interfaces_broadcaster.cpp
Outdated
Show resolved
Hide resolved
ef3167d
into
ros-controls:master
(cherry picked from commit ef3167d) # Conflicts: # doc/release_notes.rst
(cherry picked from commit ef3167d)
This PR adds a new broadcaster that publishes the values of the interfaces in the same order defined in the broadcaster configuration. This is very useful, especially for the physical AI application, where the observation vector can be properly created beforehand
needs: ros-controls/control_msgs#273