How team-jax/jax_v2 works
JAX v2 is a ROS 2 robot-arm stack for locating, grasping, lifting, and placing a desk cube, with simulation and real-hardware modes controlled through a browser dashboard. The user selects an action in the dashboard; robot services initialize the arm or run the grasp action, which uses vision and the ROS-free motion policy before sending targets through device nodes and CAN. The README documents the major subsystems and workflow; several internal links below are therefore documented relationships, not claims that unsampled source was inspected.
Main entry points: chain.py Grasp motion chain · robot_service.py Grasp action · device_node.py Motor device nodes · vision_node.py Cube vision
Components 28
Operator interface
- Web dashboard
src/jax_web/jax_web/static/app.js - Web server
src/jax_web/jax_web/web_node.py - Commands and state
src/jax_web/jax_web/commands.py - 3D and reach views
src/jax_web/jax_web/static/view3d.js
Perception and models
- Cube vision
src/jax_vision/jax_vision/vision_node.py - Marker detection
src/jax_vision/jax_vision/detect.py - Robot description
src/jax_description/launch/description.launch.py - RealSense camera
Robot control
- Arm initialization
src/jax_robot/jax_robot/init_service.py - Grasp action
src/jax_robot/jax_robot/robot_service.py - Grasp coordination
src/jax_robot/jax_robot/grasp_logic.py - Grasp motion chain
src/jax_policy/jax_policy/chain.py - Grasp and lift IK
src/jax_policy/jax_policy/grasp.py - Raise path
src/jax_policy/jax_policy/raise_path.py - Table-height shift
src/jax_policy/jax_policy/table_shift.py - Deployment tables
src/jax_policy/jax_policy/tables.py - Learned policy
src/jax_policy/jax_policy/policy.py
Hardware and simulation
- Motor device nodes
src/jax_devices/jax_devices/device_node.py - Device conversion
src/jax_devices/jax_devices/core.py - CAN transport
src/jax_can/src/can_node.cpp - CAN protocol
src/jax_can/include/jax_can/protocol.hpp - MuJoCo simulator
src/jax_sim/jax_sim/sim_node.py - Physics world
src/jax_sim/jax_sim/world.py - Real robot
ROS platform
- Joint mapping
src/jax_common/jax_common/joints.py - Servo presets
src/jax_common/jax_common/preset.py - Mode launch
src/jax_bringup/launch/robot.launch.py
Other components
- Operator
Connections 34
- Operator → Web dashboard: selects actions
README.md - Web dashboard → Web server: sends commands
src/jax_web/jax_web/static/app.js - Web server → Commands and state: uses command handlers
src/jax_web/jax_web/web_node.py - Web server → Grasp action: starts grasp action
src/jax_web/jax_web/web_node.py - Web server → Arm initialization: calls Init
README.md - Web dashboard → 3D and reach views: renders view
src/jax_web/jax_web/static/app.js - Arm initialization → Joint mapping: loads mappings
src/jax_robot/jax_robot/init_service.py - Arm initialization → Servo presets: sets presets
README.md - Arm initialization → Motor device nodes: checks devices
src/jax_robot/jax_robot/init_service.py - Grasp action → Grasp coordination: delegates grasp
src/jax_robot/jax_robot/robot_service.py - Grasp action → Grasp motion chain: steps chain
src/jax_robot/jax_robot/robot_service.py - Grasp action → Motor device nodes: sends targets
src/jax_robot/jax_robot/robot_service.py - Grasp action → Cube vision: uses cube pose
README.md - Grasp motion chain → Grasp and lift IK: uses grasp motion
src/jax_policy/jax_policy/chain.py - Grasp motion chain → Raise path: uses raise path
src/jax_policy/jax_policy/chain.py - Grasp motion chain → Table-height shift: wraps for table height
src/jax_policy/jax_policy/table_shift.py - Grasp motion chain → Deployment tables: queries reach tables
src/jax_policy/jax_policy/chain.py - Grasp motion chain → Learned policy: uses learned policy
src/jax_policy/jax_policy/chain.py - Cube vision → Marker detection: detects markers
- Cube vision → RealSense camera: receives images
README.md - Cube vision → Grasp action: publishes cube pose
README.md - Robot description → Joint mapping: reads mount arguments
src/jax_description/launch/description.launch.py - Motor device nodes → Device conversion: converts commands
src/jax_devices/jax_devices/device_node.py - Motor device nodes → Joint mapping: loads mappings
src/jax_devices/jax_devices/device_node.py - Motor device nodes → Servo presets: reads servo zeros
src/jax_devices/jax_devices/device_node.py - Motor device nodes → CAN transport: sends motor commands
src/jax_devices/jax_devices/device_node.py - CAN transport → CAN protocol: encodes frames
src/jax_can/src/can_node.cpp - CAN transport → Real robot: controls over SocketCAN
README.md - Mode launch → CAN transport: starts real CAN mode
README.md - Mode launch → RealSense camera: starts camera driver
README.md - Mode launch → MuJoCo simulator: starts simulation mode
README.md - MuJoCo simulator → Physics world: steps physics
src/jax_sim/jax_sim/sim_node.py - MuJoCo simulator → CAN transport: feeds virtual CAN
src/jax_sim/jax_sim/sim_node.py - MuJoCo simulator → Cube vision: publishes camera topics
src/jax_sim/jax_sim/sim_node.py