Hardware & Robot Setup

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).

Verify connectivity & start driver
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.10

Do 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):

  • +x extends from the arm base across the board toward the camera.
  • +y points toward the X side (Square 3); -y points toward the O side (Square 1).
  • +z points straight up. Current calibrated table_z is -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 z below the calibrated table_z.
  • Always run /home first from the folded rest pose (joint 3 ≈ 159° causes Cartesian /set_tool moves to abort with INVALID_PARAM).
  • Only one Kortex session can control the arm at a time (SESSION_NOT_IN_CONTROL). Stop kinova_gen3_node before 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=1 in 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:

ParameterValueMeaning
approach_height0.08 mVertical descent clearance above token or board square
travel_height0.15 mCarry height between spare tray and board
tool_orientation[180.0, 0.0]theta_x, theta_y pointing gripper straight down
gripper_open / closed0.0 / 1.0Open (~0.004 actual) vs closed squeeze command
missed_grasp0.95Empty close reads ~0.997; X reads ~0.90; O reads ~0.82–0.85
X.grasp_height / O.grasp_height0.002 mTool 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:

unbeatabot/wrist.py
joint_1 = atan2(y, x) + asin(0.067 / hypot(x, y))
joint_6 = 180 + joint_1 - yaw
# Reachable when |joint_6| <= 148.98 deg

Among 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: MJPG at 1280x720 (prevents USB bandwidth exhaustion / black frames).
  • Fixed Focus: Autofocus disabled (CAP_PROP_AUTOFOCUS = 0), CAP_PROP_FOCUS = 15 so hunting on the white board never blurs markers.

Unbeatabot — an EECS 4421 project. Layout based on Animate UI. Source on GitHub.