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

How to get the coordinates of obstacle area? #154

Open
SleepTenMinuteAgain opened this issue Jul 11, 2024 · 5 comments
Open

How to get the coordinates of obstacle area? #154

SleepTenMinuteAgain opened this issue Jul 11, 2024 · 5 comments

Comments

@SleepTenMinuteAgain
Copy link

Hello, how can I get the coordinates of the obstacle area, such as the first area
if -3.8 > x > -6.2 and 6.2 > y > 3.8:
goal_ok = False
I didn't understand what it meant by the obstruction area.
image
Is that the red area in the picture?

@reiniscimurs
Copy link
Owner

Yes that seems correct. We do not want goals to be located too close to the obstacles so we hardcode zones around them where a goal and robots starting position should not be located.

To get the coordinates you can either look up the positions of obstacles in the world file or simply estimate them even from this image (each square is 1x1 meter and the origin is the blue line)

@SleepTenMinuteAgain
Copy link
Author

Thank you for your answer, it is very helpful to me!
I have another question for you, how to move the self-contained aggregates (such as the cube below) in gazebo? Or is it moving at some linear and angular velocity?
image

@reiniscimurs
Copy link
Owner

You mean to add it as a dynamic obstacle? Sorry, that is outside the scope of this repo and I do not know off the top of my head. I am sure there is some tutorial out there on that.

@SleepTenMinuteAgain
Copy link
Author

Thank you very much for your patient answer❤❤❤!!!
I tried to modify the minimum collision distance, but there were some problems.
When I set the minimum collision distance to anything less than 0.35, the following picture will appear, collision occurs but does not terminate, how is this?
image

@reiniscimurs
Copy link
Owner

Are you sure a collision is detected here? What you see is a laser state representation. But we only use velodyne lidar to detect collisions. Check the min value of the collision check to see if any collision is actually detected here.

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

No branches or pull requests

2 participants