Skip to content
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

change colour space from RGB8 to the expected BGR8 #22

Merged
merged 1 commit into from
Feb 25, 2024

Conversation

marc-hanheide
Copy link
Member

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

change the colour space of the simulated gazebo camera from RGB8 to BGR8, as is expected by the standard for pointclouds (and more generally).

Related Tickets & Documents

QA Instructions, Screenshots, Recordings

With this in place, RViz2 shows the correct red and blue colours both in image view and in pointcloud:

image

[optional] Are there any post deployment tasks we need to perform?

rebuild and deploy the https://github.com/LCAS/teaching image when this is fixed.

@marc-hanheide marc-hanheide added the bug Something isn't working label Feb 24, 2024
@marc-hanheide marc-hanheide self-assigned this Feb 24, 2024
@marc-hanheide
Copy link
Member Author

@jondave @gcielniak @LeonardoGuevara @pulver22

Did you never have this problem with the gazebo sim I described in #21? I think this fix is needed!

@LeonardoGuevara
Copy link
Collaborator

We weren't aware of this since we are not using point clouds for our module but I can see this fixes the problem you mentioned.

@jondave
Copy link

jondave commented Feb 25, 2024

As Leonardo said we only used the RGB camera, not the depth camera's pointcloud so I never noticed the colour difference.

@marc-hanheide
Copy link
Member Author

so,.you approve?

@LeonardoGuevara
Copy link
Collaborator

Yes

@marc-hanheide
Copy link
Member Author

hang on, you closed without merging??

@LeonardoGuevara LeonardoGuevara merged commit 093f0f8 into humble Feb 25, 2024
@marc-hanheide marc-hanheide deleted the fix_colours branch February 25, 2024 19:37
@LeonardoGuevara
Copy link
Collaborator

My bad, I merged it now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: Red and Blue swapped in coloured PointCloud in simulation
3 participants