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

Data structure to store object densities as histogram #51

Merged
merged 3 commits into from
Nov 7, 2024
Merged

Conversation

Mmoyv27
Copy link
Contributor

@Mmoyv27 Mmoyv27 commented Oct 22, 2024

Data Structure to store object densities as a histogram

Copy link
Contributor

@ashum68 ashum68 left a comment

Choose a reason for hiding this comment

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

reviewed. i think we should make the description for PolarObstacleDensity more clear that it consists of one full oscillation as well as the description for SectorObstacleDensity

Create a new SectorObstacleDensity object.

Parameters:
- angle_start: The starting angle of the sector cluster.
Copy link
Contributor

Choose a reason for hiding this comment

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

do these parameters have units? i.e. radians? degree? what about density?

@@ -0,0 +1,85 @@
"""
Classes to store object densities as a histogram.
"""
Copy link
Contributor

Choose a reason for hiding this comment

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

small thing - i think theres an extra space here

Parameters:
- angle_start: The starting angle of the sector cluster in degrees
- angle_end: The ending angle of the sector cluster in degrees
- density: The calculated obstacle density for this sector. (0 <= density <= 1)
Copy link
Contributor

Choose a reason for hiding this comment

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

How can we interpret these density values? Given a value 0 <= x <= 1, what does x tell me about the obstacles in the sector?

Copy link
Contributor

@ashum68 ashum68 left a comment

Choose a reason for hiding this comment

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

LGTM

@Mmoyv27 Mmoyv27 merged commit 14e36f6 into main Nov 7, 2024
1 check passed
@Mmoyv27 Mmoyv27 deleted the vfh_structure branch November 7, 2024 18:36
Mmoyv27 added a commit that referenced this pull request Nov 16, 2024
* Data structure to store object densities as histogram

* Added units, removed extra space

* Added units for angle-start, angle-end. Clarified and lengthened descriptions
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.

2 participants