目录

primitive-jodell-rg-gripper-rbnx

Robonix primitive for Jodell RG-series servo parallel grippers (RG52-050, RG75-300) driven over their own RS-485 line (Modbus RTU, usually a USB-RS485 adapter on the host). It exposes the standard robonix/primitive/gripper/* contracts, so skills never see the register map. It shares nothing with the arm it is mounted on and can sit next to any arm primitive.

Checked:

Gripper Checked Not checked
RG75-300 on an AUBO i10H cell the register map, activation, moves, stop on an object (gOBJ 2) and an empty reach (gOBJ 3), with bring-up scripts that send the same frames as rg.py; a full pick and place with them this package on the real gripper
a fake RG on a pty rbnx boot in the robonix-aubo image: ACTIVE, every contract called through Atlas, state at 10 Hz with grasp and motion transitions, out-of-range width refused, clean shutdown
Contract Endpoint
robonix/primitive/gripper/info gRPC width range from width_calibration, force range from the model’s datasheet; grip without an expected width only
robonix/primitive/gripper/move gRPC target clear width in metres
robonix/primitive/gripper/grip gRPC close towards fully closed until the jaws stop on an object
robonix/primitive/gripper/open gRPC position 0, the widest calibrated width
robonix/primitive/gripper/stop gRPC halt where the jaws are; the gripper stays activated
robonix/primitive/gripper/state <prefix>/state (ROS 2, reliable) gripper/msg/GripperState at rate_hz

Behaviour

  • INIT validates config only. ACTIVATE opens the serial line exclusively and reads the status. If the gripper is not activated (it loses activation on every power cycle) it is activated only when activate_on_start is true, because activation sweeps the jaws fully open and closed. Then the state topic is declared and polling starts. DEACTIVATE stops polling and closes the line; the jaws are left where they are.
  • Commands, stop included, are refused with ok=false while the gripper is not activated (writing to it then would start the activation sweep) or reports a fault other than the idle comms bit, and for widths outside info‘s range or relative settings outside [0, 1]. They never clamp.
  • Relative settings map linearly onto the device’s 0..255 speed and force bytes; 0 selects the configured speed / force. The force byte sets the motor current limit, not newtons.
  • state maps the device’s own feedback:
    • grasp_state: gOBJ 1 or 2 (stopped on an object while opening or closing) is HOLDING, gOBJ 3 (reached the target) is NOT_HOLDING, gOBJ 0 (still moving, or nothing finished since activation) is UNKNOWN. The manual warns that very thin objects may not register, so NOT_HOLDING is not proof the jaws are empty.
    • motion_state: MOVING while gGTO is set and gOBJ is 0, or during the activation sweep; STOPPED otherwise once activated.
    • For 0.2 s after a move the device may still show the previous result, so state reports MOVING with grasp UNKNOWN for that long.
    • opening_width_m converts the reported position through width_calibration. A failed read publishes everything as unknown.
  • The poll also keeps the gripper’s 1 s comms watchdog fed. The watchdog bit (fault 0x04) is ignored; any other fault bit is logged and blocks commands.

Calibration

The fingertips decide the real opening, not the 75 mm stroke. Measure the clear width between the fingertip faces at two device positions (for example 0 and 200) and put both in width_calibration. The manual gives a linear relation between position and width. If the fingertips meet before position 255, the minimum width is 0 and a move to 0 drives to the extrapolated contact position.

See config.spec for every field.

Build

scripts/build.sh runs rbnx codegen --ros2 and colcon-builds the generated gripper interface package (GripperState is not a stock ROS 2 message), so it needs a ROS 2 environment (RBNX_ROS_SETUP, default Humble). No Python dependencies beyond the runtime image: the Modbus client is in rg.py.

The container needs the adapter (--device /dev/ttyUSB0) and a group that may open it (--group-add the device’s group, usually dialout).

Tests

PYTHONPATH=. python3 -m unittest discover -s tests -v

No ROS, serial port or gripper needed. The frame tests use the literal frames from the manual.

关于

Robonix primitive for Jodell RG-series servo grippers over Modbus RTU

44.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802047560号