Kinova Gen3 Lite networking, base frame conventions, e-stop safety rules, gripper grasp parameters, wrist continuity, and LifeCam setup.
Unbeatabot controls a Kinova Gen3 Lite arm paired with an overhead Microsoft LifeCam Studio. Understanding the arm's coordinate frame, reach envelope, driver quirks, and grasp parameters prevents collisions and aborted moves.
Kinova Gen3 Lite & Networking
Connect the arm to the host via USB-Ethernet. After power-on (~60 seconds), an enx... network interface appears and the arm listens at 192.168.1.10 (Kinova Web App at http://192.168.1.10, default credentials admin / admin).
ping 192.168.1.10
export ROS_DOMAIN_ID=87 ROS_LOCALHOST_ONLY=1
export PYTHONPATH=$HOME/kortex:$PYTHONPATH
ros2 run kinova_gen3 kinova_gen3_node --ip 192.168.1.10Do not pass --ros-args to kinova_gen3_node
kinova_gen3_node parses its CLI flags with Python argparse and rejects --ros-args. Pass only --ip 192.168.1.10.Base Frame & Workspace Reach
All poses in config/calibration.yaml and /get_tool are in the arm base frame (metres, degrees):
+xextends from the arm base across the board toward the camera.+ypoints toward the X side (Square 3);-ypoints toward the O side (Square 1).+zpoints straight up. Current calibratedtable_zis-0.0018 m.
Based on the 5 cm IK reachability map (docs/reach_pointing_down.csv), the arm can point straight down comfortably between x = 0.20 m and x = 0.45 m across y ∈ [-0.15, 0.15]. Keep the board sheet closer to the arm so Square 7/9 stay clear of x > 0.45 m where IK reach narrows and tool accuracy drops (2–17 mm).
Safety Rules & Session Handling
Critical Lab Safety Rules
- Keep a hand on the physical emergency stop whenever the arm is enabled.
- Never command
zbelow the calibratedtable_z. - Always run
/homefirst from the folded rest pose (joint 3 ≈ 159° causes Cartesian/set_toolmoves to abort withINVALID_PARAM). - Only one Kortex session can control the arm at a time (
SESSION_NOT_IN_CONTROL). Stopkinova_gen3_nodebefore running direct Kortex scripts or taking control in the Web App. - Park in Retract from the Kinova Web App before powering off.
- Set
ROS_DOMAIN_ID=87 ROS_LOCALHOST_ONLY=1in every WSL terminal on shared lab networks.
Gripper & Grasp Parameters
Grasp heights, approach clearances, and finger thresholds live in ros2_ws/src/unbeatabot/config/grasp.yaml:
| Parameter | Value | Meaning |
|---|---|---|
approach_height | 0.08 m | Vertical descent clearance above token or board square |
travel_height | 0.15 m | Carry height between spare tray and board |
tool_orientation | [180.0, 0.0] | theta_x, theta_y pointing gripper straight down |
gripper_open / closed | 0.0 / 1.0 | Open (~0.004 actual) vs closed squeeze command |
missed_grasp | 0.95 | Empty close reads ~0.997; X reads ~0.90; O reads ~0.82–0.85 |
X.grasp_height / O.grasp_height | 0.002 m | Tool z above table (both verified on real arm) |
board_angles | [40, 130, -140, -50] | 45° diagonal angles on board so open jaws clear neighbor squares |
off_board_angles | [85, -95] | Perpendicular to board edge so open jaws clear neighboring spare tokens |
Wrist Continuity & Auto-Home Retry
In unbeatabot/wrist.py, the Kinova Gen3 Lite wrist angle satisfies:
joint_1 = atan2(y, x) + asin(0.067 / hypot(x, y))
joint_6 = 180 + joint_1 - yaw
# Reachable when |joint_6| <= 148.98 degAmong valid candidate yaws (such as X.wrist_angles: [175, -95, -5, 85] or O.wrist_angles: [85, -95]), Arm chooses the yaw with minimum |Δj6| from the current wrist angle so joint 6 does not wind past its ±148.98° stop. If a long cross-board move silently aborts, Arm automatically calls home() and retries.
Camera Setup (LifeCam Studio)
Mount the Microsoft LifeCam Studio on a rigid tripod overlooking the board and spare tokens with a margin on all sides. Both tools/camera_stream.py and tools/check_markers.py configure:
- Codec & Resolution:
MJPGat1280x720(prevents USB bandwidth exhaustion / black frames). - Fixed Focus: Autofocus disabled (
CAP_PROP_AUTOFOCUS = 0),CAP_PROP_FOCUS = 15so hunting on the white board never blurs markers.