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

sample_bt_executor.yaml contains missing plugin path #74

Open
mrjogo opened this issue May 15, 2024 · 3 comments
Open

sample_bt_executor.yaml contains missing plugin path #74

mrjogo opened this issue May 15, 2024 · 3 comments

Comments

@mrjogo
Copy link

mrjogo commented May 15, 2024

This directory appears not to exist:

With BehaviorTree.CPP installed viasudo apt install ros-humble-behaviortree-cpp on Ubuntu 22.04.

Running the launchfile results in the following output, and I couldn't find any reference to bt_plugins in any BehaviorTree.CPP CMakeLists.txt:

$ ros2 launch btcpp_ros2_samples sample_bt_executor.launch.xml
[INFO] [launch]: All log files can be found below /home/ros/.ros/log/2024-05-15-11-04-28-365715-ros-desktop-72895
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [sample_bt_executor-1]: process started with pid [72896]
[INFO] [sleep_server-2]: process started with pid [72898]
[sample_bt_executor-1] [INFO] [1715796268.500210508] [bt_action_server]: Starting Action Server: behavior_server
[sample_bt_executor-1] terminate called after throwing an instance of 'std::filesystem::__cxx11::filesystem_error'
[sample_bt_executor-1]   what():  filesystem error: directory iterator cannot open directory: No such file or directory [/opt/ros/humble/share/behaviortree_cpp/bt_plugins]
[ERROR] [sample_bt_executor-1]: process has died [pid 72896, exit code -6, cmd '/home/ros/prebuilt_ws/install/btcpp_ros2_samples/lib/btcpp_ros2_samples/sample_bt_executor --ros-args --params-file /home/ros/prebuilt_ws/install/btcpp_ros2_samples/share/btcpp_ros2_samples/config/sample_bt_executor.yaml'].
^C[WARNING] [launch]: user interrupted with ctrl-c (SIGINT)
[sleep_server-2] [INFO] [1715796270.557774044] [rclcpp]: signal_handler(signum=2)
[INFO] [sleep_server-2]: process has finished cleanly [pid 72898]
@endre90
Copy link

endre90 commented May 20, 2024

Same here

@PiusLim373
Copy link

Got the same problem. I solved by pulling the BehaviourTree.CPP repo into my workspace and the fix from:
BehaviorTree/BehaviorTree.CPP#804

Rebuild and I am able to run.

@aboseley
Copy link

I hit this problem too. Thanks @PiusLim373 for the fix

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

No branches or pull requests

4 participants