uzh-rpg / agile_flight

Developing and Comparing Vision-based Algorithms for Vision-based Agile Flight
MIT License
137 stars 53 forks source link

Pyside error? #17

Open ngthanhtin opened 2 years ago

ngthanhtin commented 2 years ago

Hi, when I run roslaunch envsim visionenv_sim.launch render:=True, it has successfully opened rviz, unity,.. but still got one or two error. 1) pyside error: ImportError: cannot import name 'libqt_gui_cpp_shiboken' 2) error in Yaml file

[](url Screenshot from 2022-03-28 22-24-43 ) Do you know what the problem? thanks

ouafi98 commented 2 years ago

For the issue with the yaml file check the variable FLIGHTMARE_PATH. I guess

ngthanhtin commented 2 years ago

@ouafi98 I have source it in bashrc,for the 1) errror, when I run the launch_evaluation.bash, it can open like this, but the GUI for controling the drone is not working: Screenshot from 2022-03-28 22-45-57

ouafi98 commented 2 years ago

Sorry I can't help you, I'm sure the organizer will react quickly. To help them maybe provide what is printed out in the terminal when you try to click on connect and other stuff on the GUI.

Best of luck

yun-long commented 2 years ago

hi

1) did you resolve the YAML error? 2) which python version are you using? it seems there is a problem with the python GUI. when you click connect on the GUI, does it work?

ngthanhtin commented 2 years ago

@yun-long i havent solved the yaml file error. I use python3.6, the gui does not have any connect button, it only has off red button like the above image?

yun-long commented 2 years ago

1) can you check what is the output when you do echo $FLIGHTMARE_PATH // the output should be /something/src/agile_flight/flightmare

2) can you try to config your python executable to the python3

cd <your catkin work space>
catkin config -DPYTHON_EXECUTABLE=/usr/bin/python3
gorghino commented 2 years ago

@yun-long the gui does not have any connect button, it only has off red button like the above image?

Did you try the 'Connect' button above the red square?

ngthanhtin commented 2 years ago

@gorghino yes I tried but nothing happened

ngthanhtin commented 2 years ago

@yun-long yes I sourced exactly my FLIGHTMARE_PATH and solved the YAML problem. I set up my workspace to work with python3 as well

ngthanhtin commented 2 years ago

When I click on the GUI the cmd output like this: Screenshot from 2022-03-29 13-18-19

ouafi98 commented 2 years ago

maybe try to upgrade your python to at least 3.7 I have 3.8 it works just fine for me.