Project

General

Profile

ftsens component

Acquire data from a FTSens Force/Torque sensor.

Ports

wrench (out)

Data structure
  • struct ::or_wrench_estimator::state wrench

    • struct ::or::time::ts ts

      • long sec

      • long nsec

    • boolean intrinsic

    • optional< struct ::or::rb3d::force > force

      • double x

      • double y

      • double z

    • optional< struct ::or::rb3d::force_cov > force_cov

      • double cov[6]

    • optional< struct ::or::rb3d::torque > torque

      • double x

      • double y

      • double z

    • optional< struct ::or::rb3d::torque_cov > torque_cov

      • double cov[6]

Sensor force and torque data.

Data is published in the frame specified by set_sensor_frame (function).


frame (multiple out)

Data structure
  • struct ::or_wrench_estimator::state frame

    • struct ::or::time::ts ts

      • long sec

      • long nsec

    • boolean intrinsic

    • optional< struct ::or::rb3d::force > force

      • double x

      • double y

      • double z

    • optional< struct ::or::rb3d::force_cov > force_cov

      • double cov[6]

    • optional< struct ::or::rb3d::torque > torque

      • double x

      • double y

      • double z

    • optional< struct ::or::rb3d::torque_cov > torque_cov

      • double cov[6]

Same sensor data as port wrench (out), mapped in a different frame.

See export_frame (activity) for exporting new frames.


Services

get_calibration (attribute)

Outputs
  • struct ::ftsens::ids::calibration_s calibration

    • double G[36]

    • double b[6]


get_ft_filter (function)

Outputs
  • double ffc[3] Force X,Y,Z cut-off frequencies

  • double tfc[3] Torque X,Y,Z cut-off frequencies


set_ft_filter (function)

Inputs
  • double ffc[3] Force X,Y,Z cut-off frequencies

  • double tfc[3] Torque X,Y,Z cut-off frequencies


connect (activity)

Inputs
  • string<64> iface (default "can0") Interface name or tty path

  • unsigned long rate (default "1000") Acquisition rate (Hz)

Throws
  • exception ::ftsens::e_nodev

  • exception ::ftsens::e_baddev

  • exception ::ftsens::e_inval

Context

Connect to the hardware


disconnect (activity)

Context

Disconnect from the hardware


set_zero (activity)

Inputs
  • long samples (default "2000") Number of samples

Throws
  • exception ::ftsens::e_nodev

Context

Zero out the output


set_sensor_frame (function)

Inputs
  • double x

  • double y

  • double z

  • double yaw

  • double pitch

  • double roll

Change sensor reference frame


export_frame (activity)

Inputs
  • string<64> name

  • double x

  • double y

  • double z

  • double yaw

  • double pitch

  • double roll

Throws
  • exception ::ftsens::e_sys

    • short code

    • string<128> what

Context

Export sensor data with respect to a new frame.

The new frame is defined relative to the sensor frame, as defined by set_sensor_frame (function) (defaults to identity).


log (function)

Inputs
  • string<64> path (default "/tmp/ftsens.log") Log file name

  • unsigned long decimation (default "1") Reduced logging frequency

Throws
  • exception ::ftsens::e_sys

    • short code

    • string<128> what

Log measured wrench in sensor frame.


log_frame (function)

Inputs
  • string<64> frame Frame name

  • string<64> path (default "/tmp/ftsens.log") Log file name

  • unsigned long decimation (default "1") Reduced logging frequency

Throws
  • exception ::ftsens::e_sys

    • short code

    • string<128> what

Log measured wrench in specific frame


log_stop (function)

Stop all logging.


log_info (function)

Outputs
  • unsigned long miss Missed log entries

  • unsigned long total Total log entries

Show missed log entries


Tasks

read

Context