gazebosim / gz-gui

Builds on top of Qt to provide widgets which are useful when developing robotics applications, such as a 3D view, plots, dashboard, etc, and can be used together in a convenient unified interface.
https://gazebosim.org
Apache License 2.0
73 stars 43 forks source link

GUI camera doesn't keep manual orientation changes when in Follow entity mode #628

Open NDevDrone opened 7 months ago

NDevDrone commented 7 months ago

Environment

Description

  1. Follow entity.
  2. Rotate or pan GUI camera view.
  3. Sit in despair as you watch the camera rotate back to its default, as you can't find a means to lock new camera orientation while following anywhere within the GUI.

Output

N/A

NDevDrone commented 7 months ago

@srmainwaring , would you happen to have worked out a solution to this?

srmainwaring commented 7 months ago

@NDevDrone there is a service for the follow camera where you can reposition and reorient the camera: For example:

gz service -s /gui/follow/offset --reqtype gz.msgs.Vector3d --reptype gz.msgs.Boolean --timeout 2000 --req "x: -0.5, y: 0.5, z: 0.5"

The camera controller struggles to keep the image smooth when close to a fast moving vehicle, there is a service for adjusting that as well:

azeey commented 1 month ago

I've transferred this issue to gz-gui since it's not a documentation issue.

Also, there have been some changes to the camera tracking plugin. Is this still an issue?

NDevDrone commented 1 month ago

Hi @azeey , sorry I haven't been up to speed on developments of the camera tracking plugin. Would you mind sharing where they are reported ? Great news if so!

azeey commented 1 month ago

Sure, you can find the it in the changelog.

NDevDrone commented 1 month ago

Thanks azeey, that's pretty great to see. Looking forward to trying it out.