Flexiv RDK APIs  2.1
Public Attributes | List of all members
flexiv::rdk::RobotStates Struct Reference

Robot states data in joint and Cartesian space for a joint group. More...

#include <data.hpp>

Public Attributes

std::pair< int, int > timestamp = {}
 
std::vector< double > q = {}
 
std::vector< double > theta = {}
 
std::vector< double > dq = {}
 
std::vector< double > dtheta = {}
 
std::vector< double > tau = {}
 
std::vector< double > tau_dot = {}
 
std::vector< double > tau_ext = {}
 
std::vector< double > tau_interact = {}
 
std::vector< double > temperature = {}
 
std::array< double, kPoseSize > flange_pose = {}
 
std::array< double, kPoseSize > tcp_pose = {}
 
std::array< double, kCartDoF > tcp_twist = {}
 
std::array< double, kCartDoF > tcp_wrench = {}
 
std::array< double, kCartDoF > tcp_wrench_local = {}
 
std::array< double, kCartDoF > raw_tcp_wrench = {}
 
std::array< double, kCartDoF > raw_tcp_wrench_local = {}
 
std::array< double, kCartDoF > raw_ft_sensor = {}
 

Detailed Description

Robot states data in joint and Cartesian space for a joint group.

Definition at line 225 of file data.hpp.

Member Data Documentation

◆ dq

std::vector<double> flexiv::rdk::RobotStates::dq = {}

Measured joint velocities from the link-side encoder: \( \dot{q} \in \mathbb{R}^{n \times 1} \). This is the direct but more noisy measurement of joint velocities. Unit: \( [rad/s] or [m/s] \).

Note
If a joint has only one encoder, then \( \dot{\theta} = \dot{q} \).

Definition at line 253 of file data.hpp.

◆ dtheta

std::vector<double> flexiv::rdk::RobotStates::dtheta = {}

Measured joint velocities from the motor-side encoder: \( \dot{\theta} \in \mathbb{R}^{n \times 1} \). This is the indirect but less noisy measurement of joint velocities. Unit: \( [rad/s] or [m/s] \).

Note
If a joint has only one encoder, then \( \dot{\theta} = \dot{q} \).

Definition at line 261 of file data.hpp.

◆ flange_pose

std::array<double, kPoseSize> flexiv::rdk::RobotStates::flange_pose = {}

Measured flange pose w.r.t. world frame: \( ^{O}T_{flange} \in \mathbb{R}^{7 \times 1} \). Consists of \( \mathbb{R}^{3 \times 1} \) position and \( \mathbb{R}^{4 \times 1} \) quaternion: \( [x, y, z, q_w, q_x, q_y, q_z]^T \). Unit: \( [m]:[] \).

Definition at line 302 of file data.hpp.

◆ q

std::vector<double> flexiv::rdk::RobotStates::q = {}

Measured joint positions from the link-side encoder: \( q \in \mathbb{R}^{n \times 1} \). This is the direct measurement of joint positions. Unit: \( [rad] or [m] \).

Note
If a joint has only one encoder, then \( \theta = q \).

Definition at line 236 of file data.hpp.

◆ raw_ft_sensor

std::array<double, kCartDoF> flexiv::rdk::RobotStates::raw_ft_sensor = {}

Raw reading from the force-torque (FT) sensor w.r.t. flange frame: \( ^{flange}F_{raw} \in \mathbb{R}^{6 \times 1} \). The value is 0 if no FT sensor is installed. Consists of \( \mathbb{R}^{3 \times 1} \) force and \( \mathbb{R}^{3 \times 1} \) moment: \( [f_x, f_y, f_z, m_x, m_y, m_z]^T \). Unit: \( [N]:[Nm] \).

Definition at line 351 of file data.hpp.

◆ raw_tcp_wrench

std::array<double, kCartDoF> flexiv::rdk::RobotStates::raw_tcp_wrench = {}

Unfiltered tcp_wrench. The data is more noisy but has no filter latency.

Definition at line 338 of file data.hpp.

◆ raw_tcp_wrench_local

std::array<double, kCartDoF> flexiv::rdk::RobotStates::raw_tcp_wrench_local = {}

Unfiltered tcp_wrench_local. The data is more noisy but has no filter latency.

Definition at line 343 of file data.hpp.

◆ tau

std::vector<double> flexiv::rdk::RobotStates::tau = {}

Measured joint torques: \( \tau \in \mathbb{R}^{n \times 1} \). Unit: \( [Nm] \).

Note
If a joint has no torque measurement, the corresponding value will be 0.

Definition at line 267 of file data.hpp.

◆ tau_dot

std::vector<double> flexiv::rdk::RobotStates::tau_dot = {}

Numerical derivative of measured joint torques: \( \dot{\tau} \in \mathbb{R}^{n \times 1} \). Unit: \( [Nm/s] \).

Note
If a joint has no torque measurement, the corresponding value will be 0.

Definition at line 274 of file data.hpp.

◆ tau_ext

std::vector<double> flexiv::rdk::RobotStates::tau_ext = {}

Estimated external joint torques: \( \hat \tau_{ext} \in \mathbb{R}^{n \times 1} \). Produced by any external contact (with robot body or end-effector) that does not belong to the known robot model. Unit: \( [Nm] \).

Note
If a joint has no torque measurement, the corresponding value will be 0.

Definition at line 282 of file data.hpp.

◆ tau_interact

std::vector<double> flexiv::rdk::RobotStates::tau_interact = {}

Estimated interaction joint torques: \( \hat \tau_{int} \in \mathbb{R}^{n \times 1} \). Produced by any interaction forces at the TCP. Unit: \( [Nm] \).

Note
If a joint has no torque measurement, the corresponding value will be 0.

Definition at line 289 of file data.hpp.

◆ tcp_pose

std::array<double, kPoseSize> flexiv::rdk::RobotStates::tcp_pose = {}

Measured TCP pose w.r.t. world frame: \( ^{O}T_{TCP} \in \mathbb{R}^{7 \times 1} \). Consists of \( \mathbb{R}^{3 \times 1} \) position and \( \mathbb{R}^{4 \times 1} \) quaternion: \( [x, y, z, q_w, q_x, q_y, q_z]^T \). Unit: \( [m]:[] \).

Definition at line 309 of file data.hpp.

◆ tcp_twist

std::array<double, kCartDoF> flexiv::rdk::RobotStates::tcp_twist = {}

Measured TCP twist w.r.t. world frame: \( ^{O}\dot{X} \in \mathbb{R}^{6 \times 1} \). Consists of \( \mathbb{R}^{3 \times 1} \) linear velocity and \( \mathbb{R}^{3 \times 1} \) angular velocity: \( [v_x, v_y, v_z, \omega_x, \omega_y, \omega_z]^T \). Unit: \( [m/s]:[rad/s] \).

Definition at line 317 of file data.hpp.

◆ tcp_wrench

std::array<double, kCartDoF> flexiv::rdk::RobotStates::tcp_wrench = {}

Measured or estimated external wrench applied on TCP w.r.t. world frame: \( ^{O}F_{ext} \in \mathbb{R}^{6 \times 1} \). Consists of \( \mathbb{R}^{3 \times 1} \) force and \( \mathbb{R}^{3 \times 1} \) moment: \( [f_x, f_y, f_z, m_x, m_y, m_z]^T \). Unit: \( [N]:[Nm] \).

Definition at line 325 of file data.hpp.

◆ tcp_wrench_local

std::array<double, kCartDoF> flexiv::rdk::RobotStates::tcp_wrench_local = {}

Measured or estimated external wrench applied on TCP w.r.t. local frame: \( ^{TCP}F_{ext} \in \mathbb{R}^{6 \times 1} \). Consists of \( \mathbb{R}^{3 \times 1} \) force and \( \mathbb{R}^{3 \times 1} \) moment: \( [f_x, f_y, f_z, m_x, m_y, m_z]^T \). Unit: \( [N]:[Nm] \).

Definition at line 333 of file data.hpp.

◆ temperature

std::vector<double> flexiv::rdk::RobotStates::temperature = {}

Measured joint temperatures: \( temp \in \mathbb{R}^{n \times 1} \). Unit: \( [°C] \).

Note
If a joint has no temperature measurement, the corresponding value will be 0.

Definition at line 295 of file data.hpp.

◆ theta

std::vector<double> flexiv::rdk::RobotStates::theta = {}

Measured joint positions from the motor-side encoder: \( \theta \in \mathbb{R}^{n \times 1} \). This is the indirect measurement of joint positions. \( \theta = q + \Delta \), where \( \Delta \) is the joint's internal deflection between motor and link. Unit: \( [rad] or [m] \).

Note
If a joint has only one encoder, then \( \theta = q \).

Definition at line 245 of file data.hpp.

◆ timestamp

std::pair<int, int> flexiv::rdk::RobotStates::timestamp = {}

Current time since epoch of the robot system. The pair consists of {seconds since epoch, nanoseconds since last full second}

Definition at line 229 of file data.hpp.


The documentation for this struct was generated from the following file: