-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ros2 manager plugins #232
Ros2 manager plugins #232
Conversation
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
This reverts commit a4f9051.
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Please add behaviortree_ros2 to panther_hardware.repos and remove them from include. It will be build with colcon and you can simply include its files
plugins
directory should be moved outside ofsrc
- missing tests for shutdown_host.hpp and shutdown_hosts_node.hpp
- update includes
panther_manager/include/panther_manager/plugins/action/call_set_bool_service_node.hpp
Outdated
Show resolved
Hide resolved
panther_manager/src/plugins/action/call_set_bool_service_node.cpp
Outdated
Show resolved
Hide resolved
panther_manager/src/plugins/action/call_set_bool_service_node.cpp
Outdated
Show resolved
Hide resolved
panther_manager/include/panther_manager/plugins/action/call_set_led_animation_service_node.hpp
Outdated
Show resolved
Hide resolved
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
panther_manager/src/plugins/action/call_set_bool_service_node.cpp
Outdated
Show resolved
Hide resolved
…on | removed unused warnings Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
…ing services when there are wrong parameters Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
panther_manager/plugins/action/shutdown_hosts_from_file_node.cpp
Outdated
Show resolved
Hide resolved
panther_manager/plugins/action/shutdown_hosts_from_file_node.cpp
Outdated
Show resolved
Hide resolved
panther_manager/test/plugins/test_call_trigger_service_node.cpp
Outdated
Show resolved
Hide resolved
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
panther_manager/test/plugins/test_call_set_bool_service_node.cpp
Outdated
Show resolved
Hide resolved
panther_manager/test/plugins/test_call_set_bool_service_node.cpp
Outdated
Show resolved
Hide resolved
panther_manager/test/plugins/test_shutdown_single_host_node.cpp
Outdated
Show resolved
Hide resolved
return true; | ||
} | ||
|
||
// TODO: Create TESTs completely |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are tight on time so I finished this PR.
FYI, there were bug in test_shutdown_single_host
where WrongCommand test would actually fail due to timeout not because of command. In fact wrong command wont cause ShutdownHost node to fail thats why also last test for test_shutdown_hosts was not working correctly. For now I disabled this test we'll have to dig more in future if we want to catch failures in shutdown commands. It still should work if ping for success is set - if command fail then host wont shutdown and timeout will be reached
panther_manager
packagebehaviotree-ros2
headerscall_set_bool_service
as Behavior Tree Nodecall_trigger_service
as Behavior Tree Nodecall_set_led_animation_service
as Behavior Tree Nodeshutdown_hosts_from_file_node
as Behavior Tree Nodeshutdown_single_host_node
as Behavior Tree Nodesignal_shutdown_node
as Behavior Tree Nodetick_after_timeout_node
as Behavior Tree Decorator