-
Notifications
You must be signed in to change notification settings - Fork 148
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
VoxelMap center to quadrotor's position #5
Comments
Hi Takahiro,
The `origin` in `setMap` function is the lower left corner of the voxel
map. Let `center` be you current robot position, `dim` be the dimension of
the map (`dim` in meter instead of integer). Then the `origin` should be
`center - 0.5 * dim`.
When the robot is moving, you have to update `origin` accordingly.
Sikang
…On Fri, Jul 27, 2018 at 11:34 AM, Takahiro Miki ***@***.***> wrote:
Hi! Thank you for your library!
I tried to use this planner with rotors simulator with gazebo.
Then, I want to set the center of the VoxelMap to a quadrotor's position.
When I just set the origin with VoxelMapUtil's setMap function, it just
shifted the map.
[image: selection_003]
<https://user-images.githubusercontent.com/12872984/43330025-fc150dd6-91fc-11e8-868f-5b129d2f5ea9.png>
How can I fix this?
Thank you!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#5>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABccl1K0xvye4FgaqDY-WoQwziZbjsIMks5uKzMUgaJpZM4VjtG_>
.
|
Thank you Sikang! Yes, I did But the problem is the voxel map takes the position of the points from the world frame. |
Hi Sikang! I found the solution. Thank you! |
👍 |
Hi! Thank you for your library!
I tried to use this planner with rotors simulator with gazebo.
Then, I want to set the center of the VoxelMap to a quadrotor's position.
When I just set the origin with VoxelMapUtil's setMap function, it just shifted the map.
How can I fix this?
Thank you!
The text was updated successfully, but these errors were encountered: