Repository navigation
feat: attachments on several end-effectors - #4
Closed
ShrutheeshIR wants to merge 12 commits into
Closed
ShrutheeshIR wants to merge 12 commits into
ShrutheeshIR wants to merge 12 commits into
Conversation
ShrutheeshIR
force-pushed
the
multi-ee-attachments
branch
from
November 7, 2026 04:27
57d1597 to
cb6a781
Compare
Add UnconstrainedLocalPlanner (steer, connect_within) with SteerStatus and Extension, so planners and path simplification go through one interface for generating and validating local paths. The default planner steers with Robot::interpolate and validates with validate_motion, as before. validate_motion/validate_vector take an optional block_accept predicate (default accepts everything); validate_configuration checks a single configuration. simplify takes a local planner (default: unconstrained) and now reports the path cost. Behaviour changes in simplify: shortcut is deterministic and longest-first, ranked by planning::cost; reduce and perturb are cost-nonincreasing; PlanningResult gains `solved`. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
RRTC, PRM, FCIT*, GRRT* and AORRTC take an optional local planner (default: UnconstrainedLocalPlanner; same signatures as before) and extend and validate edges through lp.steer, lp.connect_within and lp.validate instead of calling interpolate and validate_motion directly. With the default planner the arithmetic is the same. - AORRTC absorbs aox_nn.hh. - planning/utils.hh: astar and recover_path take the goal index; planners allocate buffers with utils::buffer_alloc (unique_ptr) instead of raw vector_alloc. - nn/nn.hh provides NN<Robot>, a thin wrapper over nigh with insert, nearest, k-nearest, size, clear, so the planners are independent of the neighbor structure behind it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
KDTree<Robot> stores configurations in SIMD-friendly leaves with per-node bounding boxes and answers exact nearest, k-nearest and radius-bounded queries, with an optional (1 + epsilon) approximation. The metric is L2, except quaternion blocks (Robot::so3_offsets), which use the sign-minimized chordal distance. Queries are deterministic: ties go to the lowest index. robots/traits.hh gains so3_offsets_v<Robot> (empty for robots without quaternion blocks), so the tree works with robots that do not define the hook. The planners switch to it in the next commit. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> (cherry picked from commit f75d919)
Point NN<Robot> at KDTree instead of the nigh wrapper and remove the nigh dependency. The planners are unchanged apart from the neighbor structure behind NN. - RRTC, PRM, FCIT and GRRT* settings gain nn_epsilon for approximate nearest-neighbor queries, exposed to Python. - AORRTC's cost-lifted tree uses KDTree directly and respects the robot's quaternion blocks. - Build: drop the nigh dependency, and drop -fno-honor-nans from the clang fast-math flags: with -fno-honor-infinities also set, the kd-tree nearest-neighbor search returns an infinite distance and no index for a 14-dimensional robot, so every planner fails immediately. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Move the planner headers and their settings into planning/planners/ and add planner.hh with a Planner enum and a descriptor table (name, class, settings class, headers) for the planners. Update include paths in the bindings, the example and phs/utils. No behaviour change. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Replace the hand-written per-planner wrappers in robot_helper.hh with a registry-driven binding layer: - api_binder.hh registers every planner (single-goal and multi-goal overloads) from vamp::planning::Planner and binds the Path, PlanningResult, Roadmap, sampler and prolate-hyperspheroid classes once, through a per-robot traits struct. - array_helpers.hh holds the shared numpy/array conversion code. - Robot::in_bounds is used when a robot provides it; otherwise bounds are checked in the normalized cube, as before. Python API changes: - Path and Roadmap __getitem__ raise IndexError past the end, so iterating a path with list(path) terminates (it used to read out of bounds forever). - ProlateHyperspheroid(a, b) also accepts Python lists. Everything else exposed before is unchanged, including roadmap() and filter_self_from_pointcloud(); planner results are bit-identical to the previous bindings. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Environment::attachments becomes a vector and each Attachment carries the index of the end-effector it rides on. set_attachment_pose takes the end-effector index and poses only that end-effector's attachments; the single-attachment form (end-effector 0) is kept so existing generated headers keep working. Attachments on different end-effectors are checked against each other. The Python Environment gains 'attachments' and the Attachment constructor takes 'end_effector'. validate_motion checks 'not attachments.empty()' instead of the optional. An attachment can also list robot links it may touch without being flagged (`allowed_links`); the attachment-vs-robot check, which now receives the link id, skips those links, and the robot module's `exempt_links(names)` expands names to link ids plus every link they may touch (the never-checked pairs of the generated header, i.e. SRDF disabled pairs). Headers generated before this carry no link table: they keep working through the old overloads and do not expose `exempt_links` until regenerated. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
eefk(configuration, end_effector=0) returns the pose of the given end-effector of a robot with several (needed to pose attachments per end-effector from Python); the robot module's end_effectors() lists their frame names. Robots whose header has a single end-effector keep working: index 0 only. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Two iiwa arms with a gripper each; the gripper tool frames are the two end-effectors, so held
objects can be attached to either. Header generated by cricket's bimanual_iiwa_tool recipe,
spherized URDF for visualization.
Not built by default. Select it when installing, e.g.
pip install . -C cmake.define.VAMP_ROBOT_MODULES='panda;bimanual_iiwa_tool' \
-C cmake.define.VAMP_ROBOT_STRUCTS='Panda;BimanualIiwaTool'
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
ShrutheeshIR
force-pushed
the
multi-ee-attachments
branch
from
November 7, 2026 19:40
cb6a781 to
1e27737
Compare
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.
Environment::attachments become a vector and each Attachment carries the index of the end-effector it rides on. This is no-op and i just add an option potentially to add an option