Skip to content

FlexBE App saves Behaviors in ./install directory #99

Description

@YBachmann

I noticed that the flexbe app saved my behaviors in the ./install directory (./install/foo_state_controller_flexbe_behaviors/local/lib/python3.10/dist-packages/foo_state_controller_flexbe_behaviors) instead of the my package directory in the src folder.

If I close the flexbe app and launch it again it is able to find the behaviors in the ./install directory, I can click on "Load Behavior" and load them. But I would really like the flexbe app to store my behaviors directly in my package because otherwise source control / Git gets really messy!

Here are the contents of foo_bar01_ws/install/foo_state_controller_flexbe_behaviors:
(I changed some names to foo/bar for confidentiality reasons)

yannic@yannic-ubuntu-NB002-23:~/projects/foo_GIT/foo_bar01_ws/install/foo_state_controller_flexbe_behaviors$ tree
.
├── lib
│   └── foo_state_controller_flexbe_behaviors
│       ├── config
│       │   └── example.yaml
│       ├── copy_behavior
│       └── manifest
│           ├── example_action_state_behavior.xml
│           ├── example_behavior.xml
│           ├── bar_main_behavior.xml # <--------------------------- My behavior 
│           └── bar_measurement_behavior.xml # <--------------------------- My behavior 
├── local
│   └── lib
│       └── python3.10
│           └── dist-packages
│               ├── foo_state_controller_flexbe_behaviors
│               │   ├── example_action_state_behavior_sm.py
│               │   ├── example_behavior_sm.py
│               │   ├── __init__.py
│               │   ├── bar_main_behavior_sm.py # <--------------------------- My behavior 
│               │   ├── bar_measurement_behavior_sm.py # <--------------------------- My behavior 
│               │   └── __pycache__
│               │       ├── example_action_state_behavior_sm.cpython-310.pyc
│               │       ├── example_behavior_sm.cpython-310.pyc
│               │       ├── __init__.cpython-310.pyc
│               │       └── bar_main_behavior_sm.cpython-310.pyc
│               └── foo_state_controller_flexbe_behaviors-0.0.1-py3.10.egg-info
│                   ├── dependency_links.txt
│                   ├── PKG-INFO
│                   ├── SOURCES.txt
│                   └── top_level.txt
└── share
    ├── ament_index
    │   └── resource_index
    │       ├── package_run_dependencies
    │       │   └── foo_state_controller_flexbe_behaviors
    │       ├── packages
    │       │   └── foo_state_controller_flexbe_behaviors
    │       └── parent_prefix_path
    │           └── foo_state_controller_flexbe_behaviors
    ├── colcon-core
    │   └── packages
    │       └── foo_state_controller_flexbe_behaviors
    └── foo_state_controller_flexbe_behaviors
        ├── cmake
        │   ├── foo_state_controller_flexbe_behaviorsConfig.cmake
        │   └── foo_state_controller_flexbe_behaviorsConfig-version.cmake
        ├── environment
        │   ├── ament_prefix_path.dsv
        │   ├── ament_prefix_path.sh
        │   ├── path.dsv
        │   ├── path.sh
        │   ├── pythonpath.dsv
        │   └── pythonpath.sh
        ├── hook
        │   ├── cmake_prefix_path.dsv
        │   ├── cmake_prefix_path.ps1
        │   └── cmake_prefix_path.sh
        ├── local_setup.bash
        ├── local_setup.dsv
        ├── local_setup.sh
        ├── local_setup.zsh
        ├── package.bash
        ├── package.dsv
        ├── package.ps1
        ├── package.sh
        ├── package.xml
        └── package.zsh

23 directories, 44 files

Here are the contents of my package:

yannic@yannic-ubuntu-NB002-23:~/projects/foo_GIT/foo_bar01_ws/src/foo_state_controller_behaviors$ tree
.
├── CONTRIBUTING.md
├── LICENSE
├── foo_state_controller_flexbe_behaviors
│   ├── bin
│   │   └── copy_behavior
│   ├── CHANGELOG.rst
│   ├── CMakeLists.txt
│   ├── config
│   │   └── example.yaml
│   ├── foo_state_controller_flexbe_behaviors  # <--------------------------- Only the automatically generated examples 
│   │   ├── example_action_state_behavior_sm.py
│   │   ├── example_behavior_sm.py
│   │   ├── __init__.py
│   ├── manifest   # <--------------------------- Only the automatically generated examples
│   │   ├── example_action_state_behavior.xml
│   │   ├── example_behavior.xml
│   ├── package.xml
│   ├── resource
│   │   └── foo_state_controller_flexbe_behaviors
│   ├── setup.cfg
│   └── setup.py
├── foo_state_controller_flexbe_states
│   ├── CHANGELOG.rst
│   ├── foo_state_controller_flexbe_states
│   │   ├── example_action_state.py
│   │   ├── example_state.py
│   │   ├── __init__.py
│   │   └── foo_bar_baz_state.py
│   ├── package.xml
│   ├── resource
│   │   └── foo_state_controller_flexbe_states
│   ├── setup.cfg
│   ├── setup.py
│   └── tests
│       ├── example_action_state.test
│       ├── example_state.test
│       ├── run_colcon_test.py
│       └── run_tests.launch.py
├── PROJECT_behaviors
│   ├── CHANGELOG.rst
│   ├── CMakeLists.txt
│   └── package.xml
└── README.md

11 directories, 34 files

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions