Path kernel emitter: a frame within 1e-5 of setup XY is copied without its rotation

Open Beginner friendly
#4,559 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
84/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
rust

Research direction

Start with crates/motion/src/kernel_emit/pen.rs, focusing on EMIT_TOL and the branch that copies setup-frame XY without applying rotation. Compare the behavior with the safe refusal in crates/motion/src/kernel_emit/arcs.rs. Done means a pinning test confirms that a frame rotated by 9e-6 radians either refuses or transforms a point at local x 1000 within 1e-6.

Written by the indexing model from the issue text.

Description

area:2d bug effort:high P7 source:agent

Found by the static review of PR #4383 by qsmits (comment 7244603958, finding 7). A read-only check by the coordinator of NeoTech confirmed it at head 88fa42cf0 of side/path-kernel. The default (Old) planner does not reach this code. This issue is a gate: fix it before the switch of the operations named below.

Problem

crates/motion/src/kernel_emit/pen.rs:45-49 with EMIT_TOL 1e-5 (line 23) accepts a rotation of 9e-6 rad and copies XY untransformed (line 60). At local X 1000 mm this is about 0.009 mm in Y. A pitched exact circle is refused safely by arcs.rs:30-32.

Done means

  • The emitter transforms such a frame or refuses it.
  • Pinning test: a plane rotated 9e-6 rad, a point at local x 1000: refused, or transformed to within 1e-6.

Gate before: any kernel operation in a rotated setup frame.

Dominant language
Rust
Stars
8
Forks
11
Avg merge
10h 3m
Merged PRs (30d)
927

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from NeoTech/Camcraft

All issues in NeoTech/Camcraft

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.