Git Product home page Git Product logo

Comments (16)

astumpf avatar astumpf commented on June 15, 2024 1

In the meantime we figured out the issue: You have to set the "Package" at least once, although it does already have a selection. It seems as the app didn't initialize the internal value from the drop down menu initially.

from flexbe_app.

dcconner avatar dcconner commented on June 15, 2024

We are seeing this as well. As a work around if we "touch new_behavior_sm.py" and create an empty file first, then it seems to work OK afterwards.

from flexbe_app.

dcconner avatar dcconner commented on June 15, 2024

Sometimes we don't get any output to the terminal log screen, but sometimes we get "Code Generation completed" and "Manifest generation completed", but then error
"file new_behavior_sm.py not found in specified folder" (where new_behavior was our test name) and no files are actually created (confirmed in master and develop branches)

from flexbe_app.

pschillinger avatar pschillinger commented on June 15, 2024

There was a bug preventing to create a new behavior if the onboard engine was running and the app was connected to it.

David, the error which shows no terminal output has a different reason, but should be fixed now as well.

Please let me know if there is still another problem with creating behaviors I am not aware of.

from flexbe_app.

TGiles avatar TGiles commented on June 15, 2024

We tested with latest change, and it saves behavior but when we try to run

[ERROR] [WallTime: 1491867753.906567] bad callback: <bound method BehaviorLauncher._callback of <flexbe_widget.behavior_launcher.BehaviorLauncher object at 0x7f9d2345c990>>
Traceback (most recent call last):
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/topics.py", line 720, in _invoke_callback
    cb(msg)
  File "/home/cpsc495_team1/Desktop/cpsc495/src/flexbe_behavior_engine/flexbe_widget/src/flexbe_widget/behavior_launcher.py", line 38, in _callback
    be_id, behavior = self._behavior_lib.find_behavior(msg.behavior_name)
TypeError: 'NoneType' object is not iterable

If we exit FlexBE then restart, then the new behavior is waiting on us and works.

from flexbe_app.

pschillinger avatar pschillinger commented on June 15, 2024

Ok, makes sense. The behavior library of the launcher only updates once when being started. I will fix this.

from flexbe_app.

pschillinger avatar pschillinger commented on June 15, 2024

Updating the flexbe_behavior_engine repo should fix the above error, at least it works for me now.

from flexbe_app.

matteopantano avatar matteopantano commented on June 15, 2024

I have tried to update the two packages, switching to feature/flexbe_app in flexbe_behavior_engine and switching to develop in flexbe_app but when I try to save my behavior nothing happens, terminal does not give me any response. Furthermore if I try to push the Start Execution in Runtime Control nothing starts.
Am I missing something?

FIXED: It was not clear that I should have had to disconnect the ROS master to create a new behavior

from flexbe_app.

pschillinger avatar pschillinger commented on June 15, 2024

It should not be necessary to disconnect ROS. As I wrote above:

There was a bug preventing to create a new behavior if the onboard engine was running and the app was connected to it.

Consequently, it was a workaround to disconnect ROS. But this should not be required anymore. Since I am not able to reproduce what you describe, can you give me a few more details regarding your workspace setup and the behavior which fails to save such that I can try to reproduce?

from flexbe_app.

matteopantano avatar matteopantano commented on June 15, 2024

Well behavior is quite simple, I just have one state regarding opening and closing of the gripper (I am using this one in another behavior and it works). When i save I have no errors however if I try to push the button start execution nothing happens. As I said before if I disconnect the master the behavior saves and I can access to it the next time I will open the app, on the other hand if I save it w/out disconnecting i will not find it in the list.

The behaviors I am using are in folder youbot_behaviors antecedently downloaded from the github repository youbot_behaviors.

And here some pic of the setup.

from flexbe_app.

pschillinger avatar pschillinger commented on June 15, 2024

Thank you! One thing that looks surprising to me is that on the flexbe_conf screenshot it looks like youbot_flexbe_states (which contains the gripper state) is not detected as state package. The youbot_behaviors repo has not been converted to the new flexbe_app format, did you do this yourself? Maybe something related to this is causing the issue.

I tested it and pushed a new feature/flexbe_app branch on youbot_behaviors. Can you try again on this branch and the current version of flexbe_behavior_engine and flexbe_app? In the App, the version indicator (top right corner) should be green.

from flexbe_app.

matteopantano avatar matteopantano commented on June 15, 2024

Except from initial errors now seems to work, probably one thing missing is the possibility to delete a behaviour.

from flexbe_app.

astumpf avatar astumpf commented on June 15, 2024

Hey,
we are using FlexBE App in our lecture. Many students (myself included) have the described issue above. It works usually, but sometimes FlexBE App refuses to save. There is neither an error message nor any strange visible behavior. The app pretends to have saved but indeed didn't.
Any guess?

from flexbe_app.

pschillinger avatar pschillinger commented on June 15, 2024

Which of the issues discussed above?

It works usually, but sometimes FlexBE App refuses to save.

Have you observed any difference between the cases where it worked and where not? For example, if a ROS connection is active, the kind of changes before saving, etc?

It is hard to make a guess without any context...

from flexbe_app.

pschillinger avatar pschillinger commented on June 15, 2024

@astumpf I started to look into this, but cannot reproduce it. Can you confirm you were using a version which included the commit 68d8257?

from flexbe_app.

hbaqueiro avatar hbaqueiro commented on June 15, 2024

@astumpf I'm facing the same problem. How could you manage to set the Package? My package dropdown menu is empty, so I can't set it.

from flexbe_app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.