Skip to content
This repository was archived by the owner on Nov 5, 2026. It is now read-only.

Grippers C++ SDK 1.1.0

Choose a tag to compare

@ebarnett3 ebarnett3 released this 06 Oct 22:55
· 35 commits to main since this release
9017b57

Grippers C++ SDK 1.1.0

Adds the exchange-cycle sync primitive and the human-readable rendering of the blocks, both listed under Not in this release in 1.0.0, along with SI unit conversions and device profiles. Code written against 1.0.0 still compiles: anything that moved or was superseded keeps its 1.0.0 spelling and only warns, until the next major release.

Running in step with the exchange

  • Stamped exchanges. Each status now comes with the count and reception instant of the exchange that produced it, in StampedExchange. Gripper::getMostRecentStampedExchange(), waitForExchange() and waitForExchangeCount() let a control loop wake on the cycle itself instead of polling the process image.
  • Event-driven waits. waitFor(gripper, predicate, timeout) evaluates the predicate on every completed exchange and returns the one where it held, so it never misses a state the gripper only passes through.
  • Command confirmation. setCommandAndWaitForExchange() returns once the command block has reached the wire. The named waits cover the steps of a motion: waitForPositionEcho() until the gripper adopts a position request as its setpoint, waitForObjectDetection() and waitForMotionEnd().

Units and device profiles

Robotiq/gripper/units.hpp converts between SI values (m, m/s) and register counts, scaled by a DeviceProfile. 1.1.0 ships profiles for the 2F-85 (k2F85) and the Hand-E (kHandE).

Readable blocks

toString() renders the command block, the status block and their fields for logs and diagnostics. Its layout is for people, not parsers, and may change in any release.

Other changes

  • Windows high-resolution pacing: the exchange period no longer snaps to the ~15.6 ms timer quantum.
  • Doxygen API reference, guides under docs/, and new examples (quick_start, exchange_log, gripper_events, exchange_rate_probe).

Deprecated

Each of these still compiles and warns, and goes away in the next major release.

Deprecated Use instead
polling waitFor(predicate, …) / waitUntil(predicate, …) waitFor(gripper, predicate, timeout), or the named waits
Gripper::platform() the waits above, which need no Platform
Robotiq/gripper/register_map.hpp, Robotiq::register_map Robotiq/detail/register_map.hpp; most code wants the typed GripperCommand / GripperStatus accessors
Robotiq/detail/gripper_modbus_client.hpp, detail::GripperModbusClient Robotiq/gripper/modbus_client.hpp, Robotiq::GripperModbusClient
Robotiq/gripper/named_bit_array.hpp, Robotiq::NamedBitArray GripperCommand::action
Robotiq/gripper/throttle.hpp, Robotiq::Throttle none: internal to the SDK
Robotiq::makeDefaultLogger() pass a null Logger

Compatibility

  • 1.0.0 source compiles unchanged, with deprecation warnings. A build that treats warnings as errors needs either the replacements above or -Wno-deprecated-declarations.
  • Out-of-tree Platform, Serial or Logger implementations: as the README's versioning rule allows, a minor release may add a required member. Moving up gives a compile error that names it.
  • find_package(grippers 1.0) accepts 1.1.0.