-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added LidarVisual implementation for Ogre1, empty classes for Ogre2 #103
Conversation
Signed-off-by: Mihir Kulkarni <[email protected]>
Signed-off-by: Mihir Kulkarni <[email protected]>
Signed-off-by: Mihir Kulkarni <[email protected]>
Signed-off-by: Mihir Kulkarni <[email protected]>
Signed-off-by: Mihir Kulkarni <[email protected]>
Signed-off-by: Mihir Kulkarni <[email protected]>
Signed-off-by: Mihir Kulkarni <[email protected]>
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.
Please run bash tools/code_check.sh
inside the project folder and fix the linter errors in the files that you are adding to the project.
./src/LidarVisual_TEST.cc:105: Lines should be <= 80 characters long [whitespace/line_length] [2]
./include/ignition/rendering/LidarVisual.hh:36: Tab found; better to use spaces [whitespace/tab] [1]
./include/ignition/rendering/LidarVisual.hh:37: Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
...
Signed-off-by: Mihir Kulkarni <[email protected]>
Signed-off-by: Mihir Kulkarni <[email protected]>
Signed-off-by: Mihir Kulkarni <[email protected]>
cee20c0
to
a16a92f
Compare
Signed-off-by: Mihir Kulkarni <[email protected]>
Signed-off-by: Mihir Kulkarni <[email protected]>
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.
I can still see some linter errors in:
- include/ignition/rendering/base/BaseLidarVisual.hh
- include/ignition/rendering/LidarVisual.hh
Please add an entry in the Changelog.md
…tiple Lidars Signed-off-by: Mihir Kulkarni <[email protected]>
Signed-off-by: Mihir Kulkarni <[email protected]>
ae11b6e
to
7221f7e
Compare
Signed-off-by: Mihir Kulkarni <[email protected]>
Signed-off-by: Mihir Kulkarni <[email protected]>
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.
minor fixes
Signed-off-by: Mihir Kulkarni <[email protected]>
5b5e49f
to
9115a53
Compare
Signed-off-by: Mihir Kulkarni <[email protected]>
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.
I made a few comments but overall the lidar_visual example works great for me. Good job.
Signed-off-by: Mihir Kulkarni <[email protected]>
Signed-off-by: Mihir Kulkarni <[email protected]>
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.
alright just did a second pass review and only have some minor comments
Signed-off-by: Mihir Kulkarni <[email protected]>
… laserPoints Signed-off-by: Mihir Kulkarni <[email protected]>
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.
I left a couple comments related to CI builds. Let's try and make CI green before merging
Signed-off-by: Mihir Kulkarni <[email protected]>
Signed-off-by: Mihir Kulkarni <[email protected]>
Signed-off-by: Mihir Kulkarni <[email protected]>
ogre/src/OgreLidarVisual.cc
Outdated
line->setMaterial("Lidar/BlueStrips"); | ||
#else | ||
line->setMaterial( | ||
this->Scene()->Material("Lidar/BlueStrips")->Clone()); |
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.
This returns an ignition::rendering::MaterialPtr
object but setMaterial
expects an Ogre::MateiralPtr
object. So windows build is still failing, see console output
You'll need to get the material using ogre's material manager:
Ogre::MaterialPtr mat = Ogre::MaterialManager::getSingleton().getByName("Lidar/BlueStrips");
Signed-off-by: Mihir Kulkarni <[email protected]>
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.
thanks for iterating!
It looks like this change introduced four new test failures on Windows: |
hmm unfortunately that's expected when new tests are added since windows build is not working properly. There is an attempt to fix windows CI in pull request #109 |
Please see issue ignitionrobotics/ign-rendering#84.
I have added lidar visualisation for Ogre1 and an example for the same.
The following image shows an example of the LidarVisual with 3 vertical sets of rays.
@ahcorde Please do check the PR and let me know if there are any changes. ( This PR is different from the previous one so that it would be easier to review the code as it is separated cleanly per commit.)