Closed jesusramondovale closed 6 months ago
I don’t immediately see your issue, but you can find a full example in opennav_coverage https://github.com/open-navigation/opennav_coverage of custom external BT nodes for an external server. Hopefully you can find your mistake reviewing that!
Thanks for your response! I got some questions: Should it work just launching bringup.launch (ros2 launch nav2_bringup bringup.launch)?
Must I create also a action server like your example? I think I mustn't as I'm using the Wait action from nav2?
Actually I almost copied that exact example but I think there's a problem registering the node or compiling the library.
I know that Nav2 is finding and loading the library "correctly" because if I misspell it on nav2_params.yaml, it says that library isn't found, so it must be with the coding/building step. Using nm -C to "decode" the library.so generated, it contents 3700+ lines of "code"
Maybe am I missing some step related to the plugin.xml file?
<library path="call_portenta_control_action_bt_node">
<class name="CallPortentaControl" type="mss_bt_nodes::CallPortentaControlAction"/>
</library>
This is the complete code scheme:
sim_ws/pkg/ BTNodes/
|_____________ mss_bt_nodes
|_____________ include/
|_____________ call_portenta_control.hpp
|_____________ plugins/
|_____________mss_bt_nodes/mss_bt_nodes.xml
|_____________ src/
|_____________ call_portenta_control.cpp
|_____________ CMakeLists.txt
|_____________ package.xml
Could you tell me where can I find fully extended documentation about doing this? Cause the nav2 doc is very basic.
Sorry, please ask on robot stack exchange or look into the examples yourself in more detail. We don't have the bandwidth to debug every user's errors / misunderstandings. We have plenty of examples and references available so there's no shortage of recipes to look into to find your error. This isn't really a Nav2 issue but a BT.CPP problem understanding of how to build and work with custom plugins, it seems to me.
Required Info:
Steps to reproduce issue
I created a dummy ActionNode, which compiled with no problems, but when launching nav2 bringup, BT-Navigator doesn´t recognize my custom ActionNode tag on the BT XML
plugins/mss_bt_nodes_plugins.xml:
CMakeLists.txt:
nav2_params (bt_navigator) :
Actual behavior