agile_flight icon indicating copy to clipboard operation
agile_flight copied to clipboard

Pyside error?

Open ngthanhtin opened this issue 2 years ago • 11 comments

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

ngthanhtin avatar Mar 28 '22 13:03 ngthanhtin

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

ouafi98 avatar Mar 28 '22 13:03 ouafi98

@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

ngthanhtin avatar Mar 28 '22 13:03 ngthanhtin

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

ouafi98 avatar Mar 28 '22 13:03 ouafi98

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?

yun-long avatar Mar 28 '22 14:03 yun-long

@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?

ngthanhtin avatar Mar 28 '22 14:03 ngthanhtin

  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

yun-long avatar Mar 28 '22 14:03 yun-long

@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?

gorghino avatar Mar 28 '22 17:03 gorghino

@gorghino yes I tried but nothing happened

ngthanhtin avatar Mar 29 '22 04:03 ngthanhtin

@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 avatar Mar 29 '22 04:03 ngthanhtin

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

ngthanhtin avatar Mar 29 '22 04:03 ngthanhtin

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

ouafi98 avatar Mar 29 '22 06:03 ouafi98