Repository navigation
batchplan 0.15.0
batchplan 0.15.0 is on crates.io with its optional perception crate, batchplan-miru, and the Python bindings are on PyPI as batches (import batchplan), with wheels for Linux x86-64/ARM64, macOS Intel/Apple Silicon and Windows x86-64.
cargo add batchplan@0.15.0
cargo add batchplan-miru@0.15.0 --rename miru # optional: what depth cameras show, as objects
pip install batches==0.15.0This release is for robots of several arms and many links. A GPU runs them several times faster: past 64 pairs of links checked for self-collision, each configuration's frames are placed once per kinematics pass, so two Pandas plan 16 problems in 128 ms where they took 773 on an M4 Pro (58 ms where 181 on a Radeon 8060S), and a 48-joint robot's IK at 100 targets takes 145 ms where 650. Collision gradients go to the joints as the kernels walk the robot from its leaves, taking 8-24% off IK with the push away from obstacles, and the GPU runs faster on worlds without distance grids: the MotionBenchMaker and MπNets problems plan at 1,880 problems/s on the Radeon (1,458 before) and 815 on the M4 Pro (554). A GPU device builds half the pipelines it did.
The collision model fits a robot's spheres to its size. The default budget is derived from the robot (six spheres per moving link with geometry, at least 64 per hand), so two arms or an arm with a many-link hand fit tighter; a robot of one hand and at most ten such links fits the same spheres as before, byte for byte. Some(64) gives the old default. Robot::qualify now reports every pair of links the model never checks and why, and with QualifyOptions::pair_meshes whether their meshes can meet within the joint limits.
Also new: objects of several shapes picked up as one (Pick::parts), surfaces from known shapes (Surface::from_shapes), worlds that keep a scene file's names (World::named, World::add_body), named frames on any robot (RobotOptions::frames), joint torque limits in timing with what the hand carries (RobotOptions::torque, Held::payload), and Python bindings for the rest of the library, training-data export included.
This is a breaking minor release. Among the breaks: SphereOptions::budget is an Option<usize>; RobotOptions::default_q takes joints by name; Robot::qualify takes &QualifyOptions; Device::gpu no longer chooses a software renderer such as llvmpipe, so on a machine without a qualifying GPU it fails, naming the renderer, and Device::gpu(..).or_else(|_| Device::cpu(..)) takes the CPU device, which is faster on the same cores (Device::gpu_named still takes one by name); and servo commands different states at joint bounds, speed caps and near singular poses. A tolerance RobotOptions::sphere_tolerances names is now kept, and a budget that cannot hold the named links is a load error that names the budget at which the robot fits as asked. See the changelog for every change and its measurements.
A known limit: on an NVIDIA RTX 4090, one parity test of trajectory optimization among distance grids lowers the cost 5% less than the CPU, where 2% is allowed (devices); every other test passes there.