We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
when I forward a occupency Grid, I find that It only Recieve a Quarter Of All Map, Actually , the Origin Map is Compressed Into Quarters
Normally, the two pictures should be the same
right is the origin map and left is forwarded
there is the code
void CallBack(OccupancyGrid msg) { lock (lock_) { gridMsg.Data = new sbyte[(int)(msg.Info.Height * msg.Info.Width)]; for (int i = 0; i < msg.Info.Width; i++) for (int j = 0; j < msg.Info.Height; j++) { gridMsg.Data[i * msg.Info.Height + j] = msg.Data[i * msg.Info.Height + j]; Debug.DrawLine(new Vector3(i, 0, j), new Vector3(i, 0, j) + Vector3.forward * msg.Info.Resolution, new Color((msg.Data[i * msg.Info.Height + j] * 128) / 255.0f, 1 - (msg.Data[i * msg.Info.Height + j] * 128) / 255.0f, 0), 0.5f); } gridMsg.Info.Height = msg.Info.Height; gridMsg.Info.Width = msg.Info.Width; gridMsg.Info.Resolution = msg.Info.Resolution; gridMsg.Header = new Header() { Frame_id = Frameid }; msg.Dispose(); } } IEnumerator Publish() { while (true) { lock (lock_) { publisher.Publish(gridMsg); } yield return new WaitForEndOfFrame(); } }
Env:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
when I forward a occupency Grid, I find that It only Recieve a Quarter Of All Map, Actually , the Origin Map is Compressed Into Quarters
Normally, the two pictures should be the same
right is the origin map and left is forwarded
there is the code
Env:
The text was updated successfully, but these errors were encountered: