Repository navigation
v0.1.7 - AI1500 F/T Sensor, Mounting Base Plates, and Safety/Planning Hardening
·
17 commits
to master
since this release
AI1500 6-axis force/torque sensor (ft_sensor), official mounting base plates (*_base_plate), hardware safety gate hardening, Cartesian SLERP / trajectory planning fixes, and API/governance improvements across 65 model directories (141 MJCF XMLs, 482 canonical meshes). See CHANGELOG.md.
Install
pip install ufactory_mujoco-0.1.7-py3-none-any.whl # attached below; Python 3.12–3.14
ufactory-mujoco pick-place --robot xarm6 --headless
python -c "import ufactory_mujoco; print(ufactory_mujoco.__version__)"The wheel is a 117.4 MiB download (646.9 MiB of bundled models, meshes, task configs, and licenses once installed) and requires MuJoCo >=4,<5.
Added
- Force/Torque Sensor (
ft_sensor): 13 new MJCF model directories (ft_sensorplus{xarm5,xarm6,xarm7,uf850}_with_ft_sensor,*_with_ft_sensor_and_gripper, and*_with_ft_sensor_and_vacuum_gripper) using 15 double-sided visual OBJs (inertia="shell"), stainless-steel adapter ring (part_02) and fastener materials,<headlight specular="0.55 0.57 0.6"/>scene lighting, and a convex collision STL hull (totalmass=0.6 kgsplit into0.45 kgbase +0.15 kgfloating output head atCoM +3.87 mmahead of the+32.0 mmsensing siteft_sensor_site,+58.6 mmoutput face,timestep="0.001"). - Sensor Reader &
SimRobot/XArmRobotIntegration:ufactory_mujoco.ft_sensor(AI1500Reader,FTSensorReader,SensorReading,apply_ft_sensor_wrench,clear_ft_sensor_wrench,is_hardware_ft_sensor_enabled,read_hardware_ft_sensor_config,read_hardware_ft_sensor), re-exported fromufactory_mujoco, providing200 Hz(5-step) IEEE-754fp32sampling, real-hardware+appliedpolarity, dualraw/ext(dynamically gravity- and zero-compensated) channels, optional hardware-calibrated noise (noise_std="calibrated",RAW_NOISE_STD,EXT_NOISE_STD), and±400 N / ±20 Nmoverrange /±600 N / ±30 Nmoverload tracking.SimRobotattachesAI1500Readerautomatically (has_ft_sensor,ft_sensor,ft_sensor_reading,get_ft_sensor_reading(),reset_ft_sensor(),zero_ft_sensor());XArmRobotadds read-only F/T config/reading APIs (avoidingSERVO_R16Bstate-reset queries) and fail-closed bare-arm preflight/motion gates acrossXArmRobot,tasks.dynamics, anddynamicsCLI when a controller reports an enabled F/T sensor. - Simulation Example 11:
examples/simulation/11_force_torque_sensor.pydemonstrating dual-channel (raw/ext) baseline and+appliedwrench verification across all 13ft_sensormodels plus strictly read-only live hardware F/T sampling (--ip <ROBOT_IP> --gripper ft_sensor). - Mounting Base Plates (
base_plate): 8 new MJCF model directories ({xarm,uf850,lite6}_base_plateand{xarm5,xarm6,xarm7,uf850,lite6}_with_base_plate) with CAD-derived visual STLs (group=2), hole-filled convex collision prism STLs (group=3), top mounting planes atz=0, scene floors at-thickness(-8 / -10 / -5 mm), long edges parallel to baseY(with the two-chamfered long side ofxarm_base_platefacing base+X), and least-squares mounting-hole alignments (< 0.01 mmfit residual). - Public API, Hardware Telemetry & Safety Controls: exported
__version__("0.1.7"),quat_error, andclear_ft_sensor_wrenchfromufactory_mujoco; exposedSimRobotpublic helpers (step,step_hook,n_arm_actuators,has_viewer,viewer_is_running,sync_viewer,gripper_actuator_id,gripper_ctrl_range,gripper_qpos,gripper_wait_duration); addedControllerConfigSnapshot/restore_controller_config(),--no-return-home, and--gripperhardware preflight support acrossdynamics-hardware-checkandufactory-mujoco dynamics; and added real-gripper telemetry fields (gripper_actuated,commanded_grasp_gap_m,measured_grasp_gap_m,object_grasped_inferred) to--mode realtask reports. - Licenses & Tests: added
licenses/ufactory_robot_viewer.LICENSE(BSD-3-Clause) and Sections 5–6 inNOTICE; addedtests/test_ft_sensor.py,tests/test_base_plates.py, and regression tests acrosstest_hardware_safety.py,test_dynamics_suite.py,test_trajectory.py,test_kinematics.py,test_preflight.py, andtest_installable_tasks.py.
Changed
- Updated
pyproject.tomlversion to0.1.7with[tool.pytest.ini_options] pythonpath = ["."]and bumpedufactory_mujoco/__init__.py:__version__to"0.1.7", updatedufactory_mujoco/robots.py({xarm5,xarm6,xarm7,uf850}F/T gripper registries while keeping_PICK_PLACE_DIRSunchanged), and updatedtests/test_all_models.py(65models andft_sensor*downwardreadychecks) andtests/test_converted_assets.py(DOUBLE_SIDED_COUNT = 51). - Modularized
ufactory_mujoco/dynamics/cli.py:cli_hardware_check(reducing cyclomatic complexity and deduplicatingDynamicsSampleconstruction), added DOF-mismatch validation (exit 2) indynamics-report-compare, added a141-XML zero-warning compilation step in.github/workflows/ci.yml, and updatedscripts/accept_installed.py(>= 141XMLs,>= 482meshes,7licenses, read-only checks forxarm6_with_ft_sensor_and_gripper/xarm6_with_base_plate, and directory/file permission restoration infinally). - Updated simulation examples (
02,03,04,06,07,09,11) to use publicSimRobotinterfaces, CWD-independentMODELS_ROOTpaths, explicit CLI argument validation, and non-zero exit self-checks; updatedREADME.md,README_zh.md,examples/simulation/README.md, andexamples/simulation/README_zh.md. - Note on golden task reports: all 10
pick-placeandbox-pack--dry-runpreflight reports are byte-identical to0.1.6, and all 30 task reports remain byte-identical across Python3.12/3.13/3.14and MuJoCo4.0.0/4.0.1; the 20 simulation task reports reflect minor numeric refinement (<= 0.5 mm, e.g.xarm7pick-placeplace_error_mmimproved from3.02 mmto2.65 mm) from the body-frame SLERP and deterministicqpos0IK seeding fixes below.
Fixed
- Hardware safety gates:
tasks.dynamicshardware preflight and shadow streams now start from measuredq_nowinstead of all-zerohomeand block unmodeled non-zerotcp_load/tcp_offsetor enabled F/T sensors when--gripperis omitted;dynamics-hardware-check --hold-current-onlyis strictly read-only (mutually exclusive with--dry-run/--clear-tcp-offset);Ctrl-Chalts immediately viastop()(set_state(4)) without unpreflightedreturn_home, and normal exit runs collision preflight before returning home;dynamics-sim-collision-checkrequires--confirm-real;XArmRobotvalidates joint limits, single-step servo deltas, and trajectory start/peak-velocity bounds, flushessdk-simqueues before leaving simulation mode, and stops motion cleanly inclose();kinematics_validationavoids firmwareget_inverse_kinematics()queries that could latchwarn_code=14; andpreflightchecks non-base floor contacts instead of globally ignoring"world". - Planning & kinematics:
plan_cartesian_linenow uses body-frame right-multipliedconj(quat0) * quat1SLERP (eliminating world-frame orientation drift), copies and normalizes input quaternions without mutating caller arrays, and marks adjacent IK jumps (> 0.5 rad) withok=False;plan_ptp_quinticandplan_ptp_lspbreject non-finite parameters and infeasibleduration < t_min;JointTrajectoryvalidates non-empty finite non-decreasing timestamps;manipulabilityrestricts singular-value calculation to ancestor-chain DOFs so mounted grippers and free bodies no longer force zero manipulability;SimRobotwithq=Nonesyncsdata.qposandplan_cartesian_trajectoryslices output ton_armcolumns;_flange_tcp_offsetseeds IK deterministically atmodel.qpos0; andpreflightrefines collision stepping (_CHECK_RES = 0.02 rad). - API & CLI validation: Gripper G2 / Bio Gripper G2 automatically resume their last positive speed after
speed_percent=0pause commands;SimRobotandArmDynamicsrejectNaN/Infand out-of-range inputs;config.pyrejectsboolvalues in numeric YAML fields and merges multi-level overlays; and task CLIs return exit code2on--robotvs--configconflicts, task/scene mismatches, or hardwaredynamics --robot all.
Hardware Validation
- xArm 6 + Gripper G2 + 8 mm base plate (firmware
v2.8.0, Python3.14.6, MuJoCo4.0.1): read-onlykinematics_validation,--hold-current-only, anddynamics --gripper gripper_g2 --mode real-read-only(max static residual 0.658 Nm,err/warn = 0/0);sdk-simdynamics,pick-place, anddynamics-sim-collision-check(<= 0.000004 radphysical drift, full controller load/offset/collision config restoration); single-cycle--mode realdynamics(arrival_error_rad = 0.0) and empty-grasppick-place(21.94 mmclosed /83.8 mmopen,final_joint_error_rad = 4.94e-07,err/warn = 0/0); and compound-rotationplan_cartesian_lineround-trip (+80 mm Y, +50 mm Z,+0.35 rad Z + 0.15 rad X:sdk-sim2e-06 raddrift,--mode real0.1882 mm / 0.0435°outbound and0.1909 mm / 0.044°return arrival error,0.0007 mmmax lateral deviation,err/warn = 0/0). - xArm 6 + AI1500 F/T Sensor (firmware
v2.8.0, Python3.14.6, MuJoCo4.0.1): 6-pose static gravity calibration (0.150 kgfloating head mass,<= 0.013 N / 0.00124 Nmstatic residual,200 HzIEEE-754fp32polling, calibratedRAW_NOISE_STD/EXT_NOISE_STD); bare-arm--mode sdk-simblocked (exit1);--gripper ft_sensorreal-read-only(1.758 Nmmax static delta) andsdk-sim(272samples,7.43e-5 radmax joint error,0.043 mmmax EE error,8e-6 radphysical drift); and11_force_torque_sensor.py --ipread-only live sampling (86samples over0.5 s,err/warn = 0/0,state=2preserved).
Verified
- Local 3-environment sequential acceptance (
py312,py313,py314):ruff check .,git diff --check,141XML compilation (0errors,0warnings across all 3 envs), fullpytest tests(py312:517 passed, 724 subtests passed;py313:517 passed, 724 subtests passedincluding Pinocchio checks;py314:510 passed, 7 skipped, 719 subtests passed), CI headless example smoke suite (SMOKE PASSacross all 3 envs),30golden task reports per env (30/30byte-identical acrosspy312/py313/py314; all10dry-run reports byte-identical to0.1.6; all20simulation reports passing with<= 0.5 mmrefinement from planning fixes),twine check --strict, distribution verification (141models,482meshes,12configs,7licenses), and isolated wheel acceptance (47commandsPASSacross all 3 envs). - GitHub Actions CI run #44441069703: all 8 jobs passed (
lint,build,testandinstalledacross Python3.12,3.13,3.14with MuJoCo 4).
SHA-256
6cd198b304d161a55197a0f8ade21972f0359bb070e1ac099fb907b37fb2299f ufactory_mujoco-0.1.7-py3-none-any.whl
4deb8d5648548a033f1e46c0594e0390f61a653ebc824858b806d2ac6fa08f0f ufactory_mujoco-0.1.7.tar.gz