Skip to content
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

Merged
merged 36 commits into from
Mar 26, 2024
Merged

Ros2 manager plugins #232

merged 36 commits into from
Mar 26, 2024

Conversation

delihus
Copy link
Contributor

@delihus delihus commented Feb 26, 2024

  • Added panther_manager package
  • Added behaviotree-ros2 headers
  • Created call_set_bool_service as Behavior Tree Node
  • Created call_trigger_service as Behavior Tree Node
  • Created call_set_led_animation_service as Behavior Tree Node
  • Created shutdown_hosts_from_file_node as Behavior Tree Node
  • Created shutdown_single_host_node as Behavior Tree Node
  • Created signal_shutdown_node as Behavior Tree Node
  • Created tick_after_timeout_node as Behavior Tree Decorator
  • Tested all bt nodes

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>
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>
@delihus delihus requested a review from KmakD February 26, 2024 21:02
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
@delihus delihus marked this pull request as draft March 6, 2024 07:31
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
@delihus delihus marked this pull request as ready for review March 6, 2024 15:48
Copy link
Contributor

@KmakD KmakD left a 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 of src
  • missing tests for shutdown_host.hpp and shutdown_hosts_node.hpp
  • update includes

@KmakD KmakD mentioned this pull request Mar 14, 2024
@delihus delihus marked this pull request as draft March 15, 2024 17:29
delihus added 5 commits March 20, 2024 08:24
…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>
delihus added 2 commits March 22, 2024 10:43
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
@delihus delihus marked this pull request as ready for review March 22, 2024 12:44
@delihus delihus requested a review from KmakD March 22, 2024 12:44
panther_manager/test/plugins/test_shutdown_host.cpp Outdated Show resolved Hide resolved
panther_manager/test/plugins/test_shutdown_hosts_node.cpp Outdated Show resolved Hide resolved
return true;
}

// TODO: Create TESTs completely
Copy link
Contributor

Choose a reason for hiding this comment

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

Yes

delihus added 2 commits March 25, 2024 09:00
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
@delihus delihus requested a review from KmakD March 25, 2024 12:38
delihus and others added 2 commits March 25, 2024 21:18
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
Copy link
Contributor

@KmakD KmakD left a 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

@KmakD KmakD merged commit 245429e into ros2-devel Mar 26, 2024
@KmakD KmakD deleted the ros2-manager-plugins branch March 26, 2024 10:43
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