Allow option to restring full scan to narrow cone only#1065
Merged
Conversation
Based on experience from "Tulak po krasu 2026" where we did not want to see the back of the robot on 360 degree VanJee lidar and even 180 degrees was too much, so 90deg was final choice.
Member
Author
|
To my surprise even the logs from Pat (lidar only) had ~ 4GB, and with this extra refactoring |
tajgr
reviewed
Jun 21, 2026
| self.max_speed = config.get('max_speed', 0.5) # m/s | ||
| self.max_dist_limit = config.get('max_dist_limit', 1.3) # m | ||
| self.desired_dist = config.get('desired_dist', 0.4) # m | ||
| self.track_front_deg = config.get('track_front_deg', None) |
Collaborator
There was a problem hiding this comment.
Some note about the purpose?
tajgr
reviewed
Jun 21, 2026
| fraction = min(1.0, float(self.track_front_deg) / abs(self.scan_fov_deg)) | ||
| remove_side_fraction = (1.0 - fraction) / 2.0 | ||
| LIMIT_LOW = int(remove_side_fraction * SCAN_SIZE) | ||
| LIMIT_HIGH = SCAN_SIZE - LIMIT_LOW |
Collaborator
There was a problem hiding this comment.
It looks like a global variable but it doesn't.
Member
Author
There was a problem hiding this comment.
yeah, the code is 19 years old (Eduro, Jirka), so it would be worth it some proper refactoring - if you would use it (say with ouster+Spider), let me know
p.s. there is also not merged branch feature/push-pat so I do not want to change too much code here
tajgr
approved these changes
Jun 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Based on experience from "Tulak po krasu 2026" where we did not want to see the back of the robot on 360 degree VanJee lidar and even 180 degrees was too much, so 90deg was final choice.
The goal is to remove "followme_vanjee.py" almost identical copy from: robotika/osgar-apps#30