Skip to content

Mouse functionality for segmentation camera demo is incomplete #414

@adlarkin

Description

@adlarkin

Environment

  • OS Version: Ubuntu 18.04
  • Source or binary build?
    Source: Segmentation Camera #329
  • If this is a GUI or sensor rendering bug, describe your GPU and rendering system. Otherwise delete this section.
    • Rendering plugin: ogre2

Description

There are several mouse features that don't work with the segmentation camera demo:

  1. Ray query code causes a crash: https://github.com/ignitionrobotics/ign-rendering/blob/e185ecd74c3dd979a06740d54fd010bf146eb15b/examples/segmentation_camera/GlutWindow.cc#L160
  2. Mouse wheel scrool zoom doesn't work: https://github.com/ignitionrobotics/ign-rendering/blob/e185ecd74c3dd979a06740d54fd010bf146eb15b/examples/segmentation_camera/GlutWindow.cc#L170-L171
  3. Right mouse button zoom doesn't work: https://github.com/ignitionrobotics/ign-rendering/blob/e185ecd74c3dd979a06740d54fd010bf146eb15b/examples/segmentation_camera/GlutWindow.cc#L206-L207

Steps to reproduce

  1. build the segmentation camera demo example:
cd ign-rendering/examples/segmentation_camera
mkdir build
cd build
cmake .. && make
  1. Run the example and try to use the scroll wheel or right click button on your mouse (they won't work):
./segmentation_camera
  1. Try to uncomment the ray query code (point 1 in the Description section above) and the rebuild/re-test the example. A crash occurs when you click on the GUI display

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions