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

Add arbitrary number of obstacles #3

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

Conversation

jsduenass
Copy link

[x] Create an arbitrary number of obstacles
[x] Export obstacle data

In the obstacle environment the number of obstacles was set to 10, this pull request allows for creating an arbitrary number of obstacles. The mask of the block was changed so instead of receiving the coordinates of every element it receives a matrix [nx4] of rectangles with coordinates [x,y,length,width]. The UIinteface for setting up the obstacles was updated accordingly and now also exports these data to a csv file.

imagen

To allow for an arbitrary number of obstacles, new blocks are automatically created and updated with the corresponding properties, and organized in a grid pattern. A erase functionality is added to always start with a clean slate.

Revisions were made to ensure that the obstacles in simscape corresponded to binary occupancy grid of the robot’s sensor

imagen

Finally some inconsistencies with remarks to the order of length and width were founded the convention [x y length width] was followed and was applied when the opposite [x y width length] was founded.

…mber of obstacles and export them to csv file, [FIX] inconsistencies in frame of reference and make standar the convention [x y length width]
@jsduenass jsduenass marked this pull request as ready for review October 18, 2021 20:15
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.

1 participant