FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Action Server to execute trees by facontidavide · Pull Request #60 · BehaviorTree/BehaviorTree.ROS2 · GitHub

Action Server to execute trees - #60

Merged
facontidavide merged 12 commits into
humblefrom
bt_server
May 5, 2024
Merged

facontidavide merged 12 commits into
humblefrom
bt_server

Conversation

Copy link
Copy Markdown
Collaborator

Thanks to the hard work of @MarqRazz , we have here a first draft of a "standard" action server to execute trees on demand.

Virtual methods add a number of customization points, that are hopefully general enough to cover 99% of the cases.

MarqRazz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I have several fixes to get this working and include some basic documentation. Should have them up later today.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

What do you think about moving this file to the behaviortree_ros2 package and renaming it to bt_server or something along those lines? For the most part people should be able to use this node to run the library and it seems weird to have launch files calling <node pkg="btcpp_ros2_samples" exec="sample_bt_executor"> when it's a very capable node and not just a sample.

MarqRazz commented May 3, 2024

Copy link
Copy Markdown
Collaborator

I added some basic docs and cleaned up a few things so the examples run, let me know what you think. I was traveling most of today but will try and look into the other changes you made later.

Comment on lines +126 to +131
RCLCPP_INFO(kLogger, "Loaded ROS Plugin: %s", filename.c_str());
}
catch(const std::exception& e)
{
RCLCPP_ERROR(kLogger, "Failed to load ROS Plugin: %s \n %s", filename.c_str(),
e.what());

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

We can drop ROS from these prints now that it does both types.

Comment on lines +70 to +71
TreeExecutionServer::~TreeExecutionServer()
{}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Do we need to handle joining and cleaning up the action_thread here?

Comment thread btcpp_ros2_samples/README.md Outdated

MarqRazz commented May 5, 2024
edited
Loading

Copy link
Copy Markdown
Collaborator

I have a fix for pre-commit and minor changes to the docs if you are okay with me pushing it.

Copy link
Copy Markdown
Collaborator Author

I was going to merge it... right now! Waiting for CI to turn green. Thanks!

Copy link
Copy Markdown
Collaborator Author

I will wait for your changes to the docs to be pushed

MarqRazz left a comment
edited
Loading

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks for all the help here @facontidavide. My changes were to fix the file permissions (which you fixed) and some minor white space but this looks good as is.

facontidavide merged commit d7890e0 into humble May 5, 2024
facontidavide deleted the bt_server branch May 5, 2024 14:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL