Skip to content

[Fix] RGB data corrupt #16

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

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

Conversation

gjc13
Copy link

@gjc13 gjc13 commented Mar 17, 2016

The new kinect 2 server is sending data using bgra format. The client is however not updated, causing the problem of corrupted rgb data. The pull request fix this issue.

@psigen
Copy link
Member

psigen commented Mar 17, 2016

Ah, this is because we were using a non-master version of the client when testing. Good catch.

cv::flip(frame,frame,1);
printf("Getting time.\n");
double utcTime;
memcpy(&utcTime,&mySocket.mBuffer[imageSize],sizeof(double));
cvImage.header.frame_id = cameraFrame.c_str();
printf("%s\n", cameraFrame.c_str());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove this debug printf?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants