flexbe_behavior_engine icon indicating copy to clipboard operation
flexbe_behavior_engine copied to clipboard

Question: Make use of generic behaviors from another repo

Open reinzor opened this issue 7 years ago • 4 comments
trafficstars

Is it possible to make use of behaviors that are in a separate repository? I know this is possible for states but I cannot find this for behaviors.

reinzor avatar Jan 03 '18 14:01 reinzor

behaviors should be visible for any package that exports the <flexbe_behaviors /> tag in the package.xml. I'm not sure when the feature was added, but it should work with the feature/flexbe_app branch of the behavior engine and latest flexbe_app instead of the original chrome app.

dcconner avatar Jan 03 '18 16:01 dcconner

I have tried using this in order to load the behaviors from the vigir_behaviors repo, but I can't seem to make it work (I am using the flexbe_app version 2.2.1). After adding the <flexbe_behaviors /> tag, the "Load behavior" does list the vigir_flexbe_behaviors package. But it does not list the behaviors from that package. Plus, in the terminal there are messages saying that "Manifest and code need to be in the same ROS package" (one message for each behavior). Any idea how to fix that?

(BTW, the states in vigir_behaviors are visible and can be used in the state machine editor, but only after I added in package.xml an export with the <flexbe_states /> tag.)

drazenb avatar Nov 25 '19 05:11 drazenb

The vigir_behhaviors repo has been created for the old FlexBE Chrome App, i.e. FlexBE App version 1.x.

In the readme file of the FlexBE App, there is a section on backwards compatibility. To use the automatic conversion feature, make sure that no other behavior packages are sourced.

You can also do the conversion manually. This essentially means to move the behavior source code from the individual packages to the package that contains the manifest files and adjusting the manifests accordingly. Let me know if you need further assistance.

pschillinger avatar Nov 26 '19 19:11 pschillinger

I managed to do it manually. Thanks for the quick reply!

drazenb avatar Nov 27 '19 02:11 drazenb