uzh-rpg / agile_flight

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

installation issues with ubuntu 18.04 #39

Closed IanYangChina closed 2 years ago

IanYangChina commented 2 years ago

Hi,

I'm trying to install the package on ubuntu 18.04, there are some issues.

  1. I change the gcc/g++ version of my machine to 9.4.0 and execute the 'cmake .. && make -j3' commands. They finished without errors. However, when I ran the unittest file ./test_lib, there are 9 tests failed. The outpurs are:

Running main() from /home/xintong/Documents/PyProjects/RL_Drone_2022/flightmare/flightlib/externals/googletest-src/googletest/src/gtest_main.cc [==========] Running 32 tests from 10 test suites. [----------] Global test environment set-up. [----------] 4 tests from QuadrotorDynamics [ RUN ] QuadrotorDynamics.Constructor Quadrotor Dynamics: mass = [1] t_BM = [ 0.075 -0.075 -0.075 0.075] [-0.1 0.1 -0.1 0.1] [0 0 0 0] inertia = [0.0025 0 0] [ 0 0.0021 0] [ 0 0 0.0043] motor_omega_min = [0] motor_omega_max = [2e+03] motor_tau_inv = [30.3] thrust_map = [1.56e-06 0 0] kappa = [0.016] thrust_min = [0] thrust_max = [6.25] cthrust_min = [0] cthrust_max = [25] omega_max = [6 6 2]

 1      1      1      1

-0.1 0.1 -0.1 0.1 -0.075 0.075 0.075 -0.075 -0.016 -0.016 0.016 0.016 [ OK ] QuadrotorDynamics.Constructor (0 ms) [ RUN ] QuadrotorDynamics.Dynamics [ OK ] QuadrotorDynamics.Dynamics (0 ms) [ RUN ] QuadrotorDynamics.VectorReference [ OK ] QuadrotorDynamics.VectorReference (0 ms) [ RUN ] QuadrotorDynamics.LoadParams unknown file: Failure C++ exception with description "bad file: $/home/xintong/Documents/PyProjects/RL_Drone_2022/flightmare/flightpy/configs/control/config.yaml" thrown in the test body. [ FAILED ] QuadrotorDynamics.LoadParams (13 ms) [----------] 4 tests from QuadrotorDynamics (14 ms total)

[----------] 4 tests from Quadrotor [ RUN ] Quadrotor.Constructor [Quadrotor] Configuration file P�-ʣU does not exists. unknown file: Failure C++ exception with description "bad file: $/home/xintong/Documents/PyProjects/RL_Drone_2022/flightmare/flightpy/configs/control/config.yaml" thrown in the test body. [ FAILED ] Quadrotor.Constructor (0 ms) [ RUN ] Quadrotor.ResetSimulator [ OK ] Quadrotor.ResetSimulator (0 ms) [ RUN ] Quadrotor.RunQuadCmdFeedThrough [ OK ] Quadrotor.RunQuadCmdFeedThrough (1 ms) [ RUN ] Quadrotor.RunSimulatorBodyRate [ OK ] Quadrotor.RunSimulatorBodyRate (1 ms) [----------] 4 tests from Quadrotor (3 ms total)

[----------] 1 test from RGBCamera [ RUN ] RGBCamera.Constructor [ OK ] RGBCamera.Constructor (0 ms) [----------] 1 test from RGBCamera (0 ms total)

[----------] 3 tests from QuadrotorEnv [ RUN ] QuadrotorEnv.Constructor [QuadrotorEnv] Environment configuration path "$/home/xintong/Documents/PyProjects/RL_Drone_2022/flightmare/flightpy/configs/control/config.yaml". [QaudrotorEnv] Configuration file P�-ʣU does not exists. unknown file: Failure C++ exception with description "bad file: $/home/xintong/Documents/PyProjects/RL_Drone_2022/flightmare/flightpy/configs/control/config.yaml" thrown in the test body. [ FAILED ] QuadrotorEnv.Constructor (0 ms) [ RUN ] QuadrotorEnv.ResetEnv [QaudrotorEnv] Configuration file P�-ʣU does not exists. unknown file: Failure C++ exception with description "bad file: $/home/xintong/Documents/PyProjects/RL_Drone_2022/flightmare/flightpy/configs/control/config.yaml" thrown in the test body. [ FAILED ] QuadrotorEnv.ResetEnv (0 ms) [ RUN ] QuadrotorEnv.StepEnv [QaudrotorEnv] Configuration file P�-ʣU does not exists. unknown file: Failure C++ exception with description "bad file: $/home/xintong/Documents/PyProjects/RL_Drone_2022/flightmare/flightpy/configs/control/config.yaml" thrown in the test body. [ FAILED ] QuadrotorEnv.StepEnv (0 ms) [----------] 3 tests from QuadrotorEnv (0 ms total)

[----------] 3 tests from QuadrotorVecEnv [ RUN ] QuadrotorVecEnv.Constructor [QaudrotorEnv] Configuration file P�-ʣU does not exists. unknown file: Failure C++ exception with description "bad file: $/home/xintong/Documents/PyProjects/RL_Drone_2022/flightmare/flightpy/configs/control/config.yaml" thrown in the test body. [ FAILED ] QuadrotorVecEnv.Constructor (0 ms) [ RUN ] QuadrotorVecEnv.ResetEnv [QaudrotorEnv] Configuration file P�-ʣU does not exists. unknown file: Failure C++ exception with description "bad file: $/home/xintong/Documents/PyProjects/RL_Drone_2022/flightmare/flightpy/configs/control/config.yaml" thrown in the test body. [ FAILED ] QuadrotorVecEnv.ResetEnv (0 ms) [ RUN ] QuadrotorVecEnv.StepEnv unknown file: Failure C++ exception with description "bad file: $/home/xintong/Documents/PyProjects/RL_Drone_2022/flightmare/flightpy/configs/control/config.yaml" thrown in the test body. [ FAILED ] QuadrotorVecEnv.StepEnv (0 ms) [----------] 3 tests from QuadrotorVecEnv (0 ms total)

[----------] 3 tests from VisionEnv [ RUN ] VisionEnv.Constructor [VisionEnv] Environment configuration path "$/home/xintong/Documents/PyProjects/RL_Drone_2022/flightmare/flightpy/configs/vision/config.yaml". [VisionEnv] Configuration file P�-ʣU does not exists. unknown file: Failure C++ exception with description "bad file: $/home/xintong/Documents/PyProjects/RL_Drone_2022/flightmare/flightpy/configs/vision/config.yaml" thrown in the test body. [ FAILED ] VisionEnv.Constructor (0 ms) [ RUN ] VisionEnv.ResetEnv [ OK ] VisionEnv.ResetEnv (0 ms) [ RUN ] VisionEnv.StepEnv [ OK ] VisionEnv.StepEnv (0 ms) [----------] 3 tests from VisionEnv (0 ms total)

[----------] 5 tests from EigenChecks [ RUN ] EigenChecks.EigenVersionOutput Eigen Version: 3.3.4 [ OK ] EigenChecks.EigenVersionOutput (0 ms) [ RUN ] EigenChecks.EigenQuaternionSequence [ OK ] EigenChecks.EigenQuaternionSequence (0 ms) [ RUN ] EigenChecks.EigenQuaternionRotationDirection [ OK ] EigenChecks.EigenQuaternionRotationDirection (0 ms) [ RUN ] EigenChecks.QuaternionCrossMatrix [ OK ] EigenChecks.QuaternionCrossMatrix (0 ms) [ RUN ] EigenChecks.MatrixColumnwiseDotProduct [ OK ] EigenChecks.MatrixColumnwiseDotProduct (0 ms) [----------] 5 tests from EigenChecks (0 ms total)

[----------] 4 tests from Integrators [ RUN ] Integrators.ManualEulerAccelerationCheck [ OK ] Integrators.ManualEulerAccelerationCheck (0 ms) [ RUN ] Integrators.ManualRungeKuttaAccelerationCheck [ OK ] Integrators.ManualRungeKuttaAccelerationCheck (1 ms) [ RUN ] Integrators.QuadStateInterface [ OK ] Integrators.QuadStateInterface (1 ms) [ RUN ] Integrators.CheckEulerAgainstRungeKutta [ OK ] Integrators.CheckEulerAgainstRungeKutta (12 ms) [----------] 4 tests from Integrators (15 ms total)

[----------] 2 tests from Logger [ RUN ] Logger.SimpleLogging [Test] This is a text stream log. [Test] This is an info log. [Test] This could be a warning, but just for demo. [Test] This could be an error, but just for demo. [Test] You can print strings like "text", and formatted numbers like 3.142. [Test] You can use the stream operator '<<' just like with 'std::cout'. [Test] This can be helpul for printing complex objects like Eigen vector and matrices: A vector: 0 1 2 3 A Matrix: 1 0 0 0 1 0 0 0 1 [Test] And also our own defined objects, like so: A timer: [Printing] Timing Timer in 1 calls [Printing] mean|std: 0.0311 | 0 ms [min|max: 0.0311 | 0.0311 ms]

A QuadState State at 0s: [0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] [ OK ] Logger.SimpleLogging (0 ms) [ RUN ] Logger.NoColorLogging [Test] This is a text stream log. [Test] Info: This is an info log. [Test] Warning: This could be a warning, but just for demo. [Test] Error: This could be an error, but just for demo. [ OK ] Logger.NoColorLogging (0 ms) [----------] 2 tests from Logger (0 ms total)

[----------] 3 tests from QuadState [ RUN ] QuadState.Constructor [ OK ] QuadState.Constructor (0 ms) [ RUN ] QuadState.Accessors [ OK ] QuadState.Accessors (0 ms) [ RUN ] QuadState.Compare [ OK ] QuadState.Compare (0 ms) [----------] 3 tests from QuadState (0 ms total)

[----------] Global test environment tear-down [==========] 32 tests from 10 test suites ran. (35 ms total) [ PASSED ] 23 tests. [ FAILED ] 9 tests, listed below: [ FAILED ] QuadrotorDynamics.LoadParams [ FAILED ] Quadrotor.Constructor [ FAILED ] QuadrotorEnv.Constructor [ FAILED ] QuadrotorEnv.ResetEnv [ FAILED ] QuadrotorEnv.StepEnv [ FAILED ] QuadrotorVecEnv.Constructor [ FAILED ] QuadrotorVecEnv.ResetEnv [ FAILED ] QuadrotorVecEnv.StepEnv [ FAILED ] VisionEnv.Constructor

9 FAILED TESTS

IanYangChina commented 2 years ago
  1. Then I proceeded to install flightrl, changing the setup.py flie by 'packages=['rgb_baselines']' >> 'packages=find_packages()' to avoid the pip installation failure according to https://github.com/uzh-rpg/agile_flight/issues/5. I needed to do this for python to import flightrl. However, when i proceeded to run 'python -m python.run_vision_demo --render 1', it threw the following error: FileNotFoundError: [Errno 2] No such file or directory: '$project_path/flightmare/flightpy/configs/vision/config.yaml'. I have verified that the config.yaml file exists.
IanYangChina commented 2 years ago

The problem is a typo in the FLIGHTMATE_PATH. Shouldn't have a $ after the =....