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
75 stars 43 forks source link

Add service for configuring view control sensitivity #504

Closed iche033 closed 1 year ago

iche033 commented 1 year ago

🎉 New feature

Closes https://github.com/gazebosim/gz-sim/issues/1027

Related PR: https://github.com/gazebosim/gz-sim/pull/1799

Summary

Exposes a service for controlling how sensitive the camera view control movements are. Default is 1.0. The higher the number the more sensitive camera view control is to mouse movements. Affects all camera movements - pan, orbit, zoom.

Note that I also updated the camera reference visual service name to include the view_control string to be consistent with other service names.

Test it

Use the spin box added in https://github.com/gazebosim/gz-sim/pull/1799 to change the sensitivity settings and see the effect on camera movements.

Checklist

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

codecov[bot] commented 1 year ago

Codecov Report

Merging #504 (c3c8b81) into ign-gui6 (cdbd53c) will decrease coverage by 0.60%. The diff coverage is 22.00%.

@@             Coverage Diff              @@
##           ign-gui6     #504      +/-   ##
============================================
- Coverage     67.46%   66.85%   -0.61%     
============================================
  Files            39       39              
  Lines          5286     5310      +24     
============================================
- Hits           3566     3550      -16     
- Misses         1720     1760      +40     
Impacted Files Coverage Δ
src/plugins/minimal_scene/MinimalScene.cc 60.00% <15.38%> (-4.65%) :arrow_down:
...interactive_view_control/InteractiveViewControl.cc 18.04% <24.32%> (+2.15%) :arrow_up:
src/plugins/scene3d/Scene3D.cc 49.87% <0.00%> (+0.25%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.