Skip to main content

Smart/T-VIS Visuotactile Electronic Skin SDK

See the visuotactile product introduction for W2L, W2M, and X specifications, connections, and precautions. This page covers Python installation, interfaces, and examples. The product's 120 Hz output specification is distinct from the inference frame rate achievable on a particular computing platform with a particular set of enabled features.

Product information

Smart/T-VIS is a visuotactile electronic skin product from Daimon, exclusively distributed by Shenzhen Synria Technology Co., Ltd. Synria provides product consultation, selection assistance, and technical support.

Overview​

When an object contacts the sensor, the dmrobotics platform processes changes in the contact image into tactile data. Applications can read contact images, deformation directions, indentation depth, tangential displacement, distributed force, overall six-axis force and torque, and contact area.

Available measurements​

MeasurementMeaningInterface and return value
Contact imageReal-time view of the effective sensing areagetInferImg() → (fid, DMTacImage)
Raw grayscale imageUnprocessed data for debugging, recording, and status checksgetRawImg() → (fid, DMTacImage)
2D deformationIn-plane surface displacement in mmgetDeformation2D() → (fid, ndarray[H, W, 2])
Normal deformationIndentation perpendicular to the sensor surface in mmgetDepth() → (fid, ndarray[H, W])
Tangential deformationSurface-parallel deformation for displacement and slip analysis, in mmgetShear() → (fid, ndarray[H, W, 2])
Distributed forceThree-direction force distribution across the sensing areagetDistributeForce() → (fid, ndarray[H, W, 3])
Six-axis force and torqueOverall three-axis force and three-axis torquegetForce() → (fid, ndarray[1, 6])
Contact areaObject contact area in mm²getContactArea() → float

fid is a monotonically increasing frame identifier. H and W represent the output height and width. DMTacImage.img contains a uint8 image; deformation and force fields use float32 arrays.

Choosing outputs

Deformation outputs describe changes in the sensing surface, while force and contact-area outputs describe the load and contact extent. Enable only the outputs needed by the application to reduce computation.

SDK quick start​

The PC Python package is named dmrobotics. Its main entry points are:

  • SensorOptions: device selection, computing backend, operating mode, maximum frame rate, and enabled outputs.
  • Sensor: connection, images, deformation, forces, and device status.
  • listConnectedDevIDs(): enumeration of connected sensors.
  • dmrobotics.utils: visualization, HDF5 recording, and replay examples.

Online inference processes live sensor data. Offline inference processes saved raw frames for dataset preparation, algorithm verification, and reproducible analysis.

Install the SDK​

Use Python 3.8–3.11 in a virtual environment. From the supplied SDK package directory, install one of the following configurations.

CPU only:

pip install .

Local NVIDIA GPU:

pip install .[gpu]

GPU operation requires compatible NVIDIA driver, CUDA, cuDNN, and SDK dependency versions. After installation, build the TensorRT inference engine:

dmrobotics trt rebuild
First connection

Start with CPU mode to verify connectivity and basic outputs, then switch to CUDA or Flux after acquisition and status checks work.

Initialization options​

from dmrobotics import Mode, Sensor, SensorOptions

options = SensorOptions(
dev_id="X25480024", # Replace with the device ID; index 0 also works for a quick test
backend="cpu", # "cpu", "cuda", or "Flux"
mode=Mode.HIGH, # STANDARD uses fewer resources; HIGH provides finer inference
max_fps=120,
show_fps=False,
enable_raw=True,
enable_deformation=True,
enable_depth=True,
enable_shear=True,
enable_force=True,
)

sensor = Sensor(options)

dev_id accepts a device index such as 0 or an identifier such as "X25480024". Use identifiers for stable selection when reconnecting devices or operating multiple sensors.

The backend selects where computation runs:

  • "cpu": local CPU.
  • "cuda": local NVIDIA GPU.
  • "Flux": dedicated Flux edge computing device.

Mode.STANDARD uses fewer resources. Mode.HIGH uses more resources for finer inference. This mode setting does not take effect on the CPU backend.

For Flux, also specify the remote endpoint and the PC listener:

options = SensorOptions(
dev_id="X25480024",
backend="Flux",
remote_addr="192.168.127.10:50051",
pc_host="192.168.127.2", # Replace with the PC address reachable from Flux
pc_port=60000,
)

remote_addr is the Flux IP:port; pc_host must be reachable from Flux, and pc_port is the PC listening port.

The enable_* options control output generation. When a channel is disabled, its getter may return None or an old value; do not continue consuming that channel as current data.

Minimal live acquisition example​

The example enumerates devices, initializes a sensor, checks its status, waits for new frames, reads the contact image and normal deformation, and releases resources on exit.

import time

from dmrobotics import Mode, Sensor, SensorOptions, listConnectedDevIDs

print("Connected devices:", listConnectedDevIDs())

options = SensorOptions(
dev_id="X25480024", # Replace with the actual device ID, or use 0 for a quick test
backend="cpu",
mode=Mode.HIGH,
max_fps=120,
enable_depth=True,
)

sensor = Sensor(options)
last_fid = -1

try:
while True:
status = sensor.getDevStatus()

if status == 2:
raise RuntimeError("Sensor disconnected")
if status == 1:
# Keep the surface free of contact while the device resets
time.sleep(0.01)
continue

if not sensor.wait_for_new(last_fid, timeout_ms=1000):
continue

fid, image = sensor.getInferImg()
depth_fid, depth = sensor.getDepth()
last_fid = fid

print(
f"Image frame={fid}, image shape={image.img.shape}, "
f"depth frame={depth_fid}, depth shape={depth.shape}"
)
finally:
sensor.disconnect()

Most live getters return (fid, data). Compare frame identifiers when combining image, deformation, and force outputs to confirm that the data belongs to the intended frames.

Status and resource management​

getDevStatus()StateHandling
0NormalRead data
1ResettingPause acquisition and keep the sensing surface free of contact
2DisconnectedStop acquisition and check the connection

Use wait_for_new(last_fid, timeout_ms) to avoid repeatedly processing the same frame and wasting CPU time. Call disconnect() on exit to stop internal threads and release camera and logging resources.

Processing pipeline​

  1. Acquire images from the effective sensing area.
  2. Compare the current image with the reference to calculate in-plane, normal, and tangential deformation.
  3. Generate enabled force, torque, and contact-area outputs.
  4. Read the results through Python for robot control, acquisition, or algorithm development.

The SDK uses frame identifiers across most live interfaces to help detect new data and synchronize outputs.

Operating capabilities​

The SDK supports live acquisition for real-time control and display, and offline processing of stored raw frames for verification and reproducibility. CPU, CUDA, and Flux provide different computing options; TensorRT engines can be built and cached for GPU inference.

For device management, applications can:

  • Select by index or persistent device identifier.
  • Check normal, resetting, or disconnected status.
  • Wait for new frames and reset the sensor reference.
  • Change the maximum processing frame rate at runtime.
  • Enable or disable output channels as needed.
  • Disconnect explicitly to release computing and camera resources.

Example applications and supporting tools​

Example uses include contact confirmation during grasping, indentation and slip analysis, contact-area and force visualization, synchronized multi-sensor acquisition, and tactile dataset preparation.

The software platform also provides reference tools to visualize deformation vectors, record and replay HDF5 data, run single- and multi-sensor examples, generate offline tactile features, build TensorRT engines, and manage logs for diagnosing disconnections or initialization failures.

Before use​

  • Use Python 3.8–3.11 on the PC.
  • Begin with CPU validation, then configure compatible GPU dependencies if needed.
  • Keep the sensing surface free of contact during a reset.
  • Use raw grayscale images for debugging and recording; use derived deformation and force outputs for application processing as appropriate.

For model specifications, mounting, computing-platform selection, or integration support, see the product introduction or contact Synria.