-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
working on updating segmentation camera to ogre2.2
Signed-off-by: Ashton Larkin <ashton@openrobotics.org>
- Loading branch information
Showing
1 changed file
with
77 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f81dd61
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For context, I have branched off of the fork in #329 and have merged in the recent changes from the
main
branch. Part of the recent changes onmain
are updating from ogre2.1 to ogre2.2 (#272), so now, I am trying to update theOgre2SegmentationCamera
in #329 to use ogre2.2 instead of 2.1.If you'd like to test the changes being made here, you can either try running the unit/integration tests added in #329 or build this in a workspace along with gazebosim/gz-sim#853 and gazebosim/gz-sensors#133, and then try running
segmentation_camera.sdf
from the gazebo PR. If you do decide to build a workspace with the gazebo and sensors PRs, you'll need to make the following changes to the gazebo PR in order to get it to compile:Gazebo PR compilation fix
The changes I've made here compiles, but I'm having runtime issues.
First off, I have noticed that this line crashes because
node->_getPasses()
returns a vector of size 1, so instead of indexing at 1, it needs to be indexed at 0. So, it seems like the number of passes has changed between ogre2.1 and ogre2.2. Would it make sense that the number of passes changed between ogre2.1 and ogre2.2, or is something else wrong here?If the index is updated to prevent the crash as mentioned above, I then see this error when I try to run
segmentation_camera.sdf
from the gazebo PR:Lastly, I also am not sure how to update
Ogre2SegmentationCamera::Capture
properly for ogre2.2 (see the commented out section in the diff of that method above for more details). If anyone has feedback for this, that would be greatly appreciated!