-
Notifications
You must be signed in to change notification settings - Fork 3
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
Cannot save behavior (Inconsistent paths!) #6
Comments
I presume you are using Humble as it uses the "local/lib" path. Just have that function return True, or add 'local' to the possible checks. I think that we may want to change https://github.com/FlexBE/flexbe_webui/blob/beta/flexbe_webui/tools.py#L43
to work with Humble. I would appreciate if you'd be willing to make the change and test. On a related note, the I need to create a special Humble branch for projects and update We are still actively developing this |
I am also testing FlexBE WebUI in ROS2 Humble, and facing the same trouble with PATH inconsistency. I have already tried this solution in the tools.py (l43). However, it seems that updates in webui_server.py and behavior_library.py in FlexBe Behavior Engine are also required. - folder_path = os.path.join(package.path, 'lib', behavior.behavior_package, 'manifest')
+ folder_path = os.path.join(package.path, 'local/lib/python3.10/dist-packages', behavior.behavior_package, 'manifest')
- self._add_behavior_manifests(os.path.join(pkg_path, 'lib', pkg_name, 'manifest'), pkg_name)
+ self._add_behavior_manifests(os.path.join(pkg_path, 'local/lib/python3.10/dist-packages', pkg_name, 'manifest'), pkg_name) @dcconner , what do you think about this? Is there any other proper solution? |
Thanks for your reply. Yes, I am using Humble. I rewrote tools.py as you wrote, and now the error no longer occurs. Since I will still continue to use Humble for some years, I would be very happy if you support Humble as well. |
@MrKeith99 We have stored the manifests in a different folder from the python scripts. While one fix to the path consistency issue might be to move the manifest packages, I suggest not doing that. |
I just started using WebUI.
I created a project by running the following
After
colcon build; source install/setup.bash
, I launched WebUI by running the followingNext I loaded the Example Behavior and confirmed it to work.
However, when I change the arrangement in the Statemachine Editor and click "Save Behavior" in Runtiem Control, I get an error as shown in the image.
It is said that the behavior Python file path and the manifest XML file path are inconsistent, so I checked them and found the paths are as follows.
/home/masutani/test_ws/install/foobar_flexbe_behaviors/local/lib/python3.10/dist-packages/foobar_flexbe_behaviors/example_behavior _sm.py
/home/masutani/test_ws/install/foobar_flexbe_behaviors/lib/foobar_flexbe_behaviors/manifest/example_behavior.xml
There must be a problem with the path checking.
The text was updated successfully, but these errors were encountered: