Skip to content

Allow option to restring full scan to narrow cone only#1065

Merged
m3d merged 3 commits into
masterfrom
feature/followme-vanjee-pat-update
Jun 21, 2026
Merged

Allow option to restring full scan to narrow cone only#1065
m3d merged 3 commits into
masterfrom
feature/followme-vanjee-pat-update

Conversation

@m3d

@m3d m3d commented Jun 19, 2026

Copy link
Copy Markdown
Member

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

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.
@m3d m3d requested a review from tajgr June 19, 2026 20:25
@m3d

m3d commented Jun 21, 2026

Copy link
Copy Markdown
Member Author

To my surprise even the logs from Pat (lidar only) had ~ 4GB, and with this extra refactoring osgar.replay --module app passes OK. I would propose to merge it and remove it from Tulak code

Comment thread osgar/followme.py
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)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Some note about the purpose?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

fixed, thanks

Comment thread osgar/followme.py
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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It looks like a global variable but it doesn't.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Ok I see.

@m3d m3d merged commit 420dbc9 into master Jun 21, 2026
2 checks passed
@m3d m3d deleted the feature/followme-vanjee-pat-update branch June 21, 2026 10:24
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