Giter Club home page Giter Club logo

Comments (25)

Winter-Guerra avatar Winter-Guerra commented on July 24, 2024

Could you please post your player.log for v2.0.2? The renderer should not be using the experimental render pipeline (it was built without it). This might be a different issue.

from flightgoggles.

lukked avatar lukked commented on July 24, 2024

This is the unity player.log
Player.log
Error messages from rosrun flightgoggles FlightGoggles.x86_64
stderr.txt
i also received some cmake warnings (as far as I can remember the same ones like when building the 2.0.0 multithread version).
build_warnings.txt

from flightgoggles.

Winter-Guerra avatar Winter-Guerra commented on July 24, 2024

It looks like the Unity backend cannot load some library files. This might be from an incomplete download. I suspect that error is the core issue, not multithreading.

Could you please try downloading v2.0.2 from the releases page and try again? Alternatively, catkin clean && catkin build

Fallback handler could not load library /home/drg/catkin_ws/devel/.private/flightgoggles/lib/flightgoggles/FlightGoggles_Data/Mono/libKernel32
Fallback handler could not load library /home/drg/catkin_ws/devel/.private/flightgoggles/lib/flightgoggles/FlightGoggles_Data/Mono/libKernel32.so
Fallback handler could not load library /home/drg/catkin_ws/devel/.private/flightgoggles/lib/flightgoggles/FlightGoggles_Data/Mono/Kernel32
Fallback handler could not load library /home/drg/catkin_ws/devel/.private/flightgoggles/lib/flightgoggles/FlightGoggles_Data/Mono/libKernel32
Fallback handler could not load library /home/drg/catkin_ws/devel/.private/flightgoggles/lib/flightgoggles/FlightGoggles_Data/Mono/libKernel32.so
Fallback handler could not load library /home/drg/catkin_ws/devel/.private/flightgoggles/lib/flightgoggles/FlightGoggles_Data/Mono/libKernel32

from flightgoggles.

lukked avatar lukked commented on July 24, 2024

I did it allready. These missing library messages appeared already in the first release, and then with 2.0.0_no_multithread everything was fine.

from flightgoggles.

lukked avatar lukked commented on July 24, 2024

Here is the log from FG 2.0.2 with renderer 2.0.0_no_multithread copied into the devel/lib directory
It works but out of sync as I already mentioned.
As you can see the Fallback handler ... messages are there but it stll works.
Player.log

from flightgoggles.

Winter-Guerra avatar Winter-Guerra commented on July 24, 2024

from flightgoggles.

lukked avatar lukked commented on July 24, 2024

ubuntu 16.04 last upgrade. nvidia 384.130. vulkan-smoketest works at 60FPS.
Its a i5 laptop with an internal radeon and an external nvidia 1050 ti. monitors attached to nvidia. and graphics and opengl go through that.

from flightgoggles.

Winter-Guerra avatar Winter-Guerra commented on July 24, 2024

from flightgoggles.

lukked avatar lukked commented on July 24, 2024

OK its kubuntu not ubuntu but i think that shouldn't matter. I'm just more used to having kde.

now i see that in the linked stderr.txt /usr/lib/x86_64-linux-gnu/libvulkan_radeon.so is mentioned besides nvidia.
That's the only weird thing I can see right now.
I don't know why because /usr/lib/xorg/Xorg certainly using nvidia (it is listed in nvidia-smi)

I'm unable to unload radeon driver although I removed it from the pci bus so it's not visible with lspci and the radeon GPU is not usable by the system.

from flightgoggles.

lukked avatar lukked commented on July 24, 2024

Ok, this is probably due to binary build using Unity3D backend 2018.3.0f2 vs 2018.3.5x. Unity3D changelog mentions some performance and stability fixes for Vulkan. I'll try building a binary for you with a newer backend.

On Mon, Feb 18, 2019, 12:29 lukked @.***> wrote: ubuntu 16.04 last upgrade. nvidia 384.130. vulkan-smoketest works at 60FPS. Its a i5 laptop with an internal radeon and an external nvidia 1050 ti. monitors attached to nvidia. and graphics and opengl go through that. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#50 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AAOwrttRVJk0-JGOzAe4ZnytxQ1WPrfnks5vOuLfgaJpZM4a_2Gw .

OK, thanks a lot.

from flightgoggles.

lukked avatar lukked commented on July 24, 2024

Just in case that I was not completely clear about the issues I am experiencing:

FG 2.0.0 with renderer 2.0.0_no_multithread actually works very well on my system. The graphics is rather slow (I know that the PCI connection is bottlenecking the eGPU) but ROS clock scaling does its job and the drone is controllable by the keyboard.

This is not the case with FG 2.0.2 and the same renderer where the clock scaling just minimally slows down ROS, not enough to make the drone controllable.

The original (experimental render pipeline) 2.0.0 and the newest (no experimental render pipeline) 2.0.2 renderers both crash with, oddly, the same error messages.

from flightgoggles.

lukked avatar lukked commented on July 24, 2024

v2.0.3 doesn't crash anymore!
Thank you!

Regarding the lack of synchronization on slow hardware setups: this appears to be a separate issue. I checked older versions and this behavior started after this bf53fb7.
It seems that clock scaling can be set manually. Could you please tell me how?

from flightgoggles.

Winter-Guerra avatar Winter-Guerra commented on July 24, 2024

Manual clock scaling is done by setting clockscale in https://github.com/mit-fast/FlightGoggles/blob/master/flightgoggles/config/drone/drone.yaml

For automatic 60hz clock scale, this line should be commented out (#).

Thanks for the heads up. We found a bug in the code that allows for clock scale when using non-sim time (which should not be possible) that will be patched later today.

from flightgoggles.

lukked avatar lukked commented on July 24, 2024

Great, manual scaling works. I'm fine for now. Thanks again.

from flightgoggles.

PHRABAL avatar PHRABAL commented on July 24, 2024

@Winter-Guerra I'm getting confused by the changes in some of these items and settings related to sim time, clock speed, etc. from v2.0.0 to current. I noticed with v2.0.2 on startup it says the use_sim_time parameter is not set and so using the default false. Above you talk about manual clock scaling. Just a basic question - to run my autonomous algo on FG, with the p3, what should my settings be for sim_time, clock speed, etc.? Are the defaults in v2.0.2 correct or do I need to change something?

from flightgoggles.

Winter-Guerra avatar Winter-Guerra commented on July 24, 2024

Just pushed a patch for automatic clock scaling. However, if manual works for you then I guess it doesn’t really matter @lukked . I’m glad we were able to solve your original problems!

@PHRABAL when LM evaluates your algorithm, I assume that they will set /use_sim_time and unset /uav/flightgoggles_uav_dynamics/clockscale to enable automatic clock scaling. I’m not entirely sure though. The latest commit should have been a bugfix and should not have really changed the behavior of the clock scaling system.

If you’d like to use manual clock scaling, set /use_sim_time and set /uav/flightgoggles_uav_dynamics/clockscale to your desired clock scaling.

from flightgoggles.

Winter-Guerra avatar Winter-Guerra commented on July 24, 2024

@PHRABAL we now have a lot of code and params documentation and FAQ answers on the wiki:
https://github.com/mit-fast/FlightGoggles/wiki

from flightgoggles.

PHRABAL avatar PHRABAL commented on July 24, 2024

@Winter-Guerra thank you. So when I launch core in v2.0.2, it says Did not get bool useSimTime_ from the params, defaulting to false. So what you are suggesting is that your default here (not use sim time) is not what we will want to use for the competition. We should 1) enable sim time and 2) comment out clock scaling.

from flightgoggles.

Winter-Guerra avatar Winter-Guerra commented on July 24, 2024

from flightgoggles.

PHRABAL avatar PHRABAL commented on July 24, 2024

@Winter-Guerra upgraded to v2.0.3. core.launch now uses auto clock scaling. But still see Did not get bool useSimTime_ from the params, defaulting to false upon launch, so have added <param name="/use_sim_time" value="true" /> to bottom of core.launch.

from flightgoggles.

Winter-Guerra avatar Winter-Guerra commented on July 24, 2024

from flightgoggles.

PHRABAL avatar PHRABAL commented on July 24, 2024

https://github.com/mit-fast/FlightGoggles/blob/master/flightgoggles/launch/core.launch#L14 is not in my core.launch file in v2.0.3.

Once I set sim time to true, at launch it correctly says Using sim_time and did not get a clock scaling value. Defaulting to automatic clock scaling.

Not sure why your line in core.launch didn't make it into v2.0.3.

from flightgoggles.

Winter-Guerra avatar Winter-Guerra commented on July 24, 2024

from flightgoggles.

PHRABAL avatar PHRABAL commented on July 24, 2024

@Winter-Guerra This might help you: When I upgraded from v2.0.0 to v.2.0.2 on Sunday it first kicked off an error saying that a couple files it wanted to update had been modified by me and I had to remove those files before the update would put the replace files there and complete the update. But today going from v2.0.2 to v.2.0.3 I did not get that error even though I had manually modified a couple files that should have been updated with v.2.0.3, like drone.yaml.

from flightgoggles.

PHRABAL avatar PHRABAL commented on July 24, 2024

@Winter-Guerra Never mind that comment. It did kick the error. The core.launch didn't upgrade because I missed the error message as it scrolled off the screen.

from flightgoggles.

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.