9#if defined(__has_include) && (__has_include(<xtensor/containers/xarray.hpp>))
10#include <xtensor/containers/xarray.hpp>
12#include <xtensor/xarray.hpp>
15#include <viam/sdk/common/kinematics.hpp>
16#include <viam/sdk/common/linear_algebra.hpp>
69 const std::vector<JointRow>&
rows()
const;
72 std::vector<JointRow> rows_;
A per-joint model table for a serial kinematic chain, held in chain order. Build one with the from fa...
Definition kinematics_model_table.hpp:24
static ModelTable from(const KinematicsDataURDF &urdf)
Parse a kinematics description into a model table in chain order.
const std::vector< JointRow > & rows() const
The rows of the table, in chain order.
xt::xarray< double > to_tensor() const
Convert to a double tensor of shape (n, 10). Columns: 0..2 xyz, 3..5 rpy, 6..8 axis,...
ModelTable(std::vector< JointRow > rows)
Construct directly from rows already in chain order.
static ModelTable from(const xt::xarray< double > &tensor)
Inverse of to_tensor: rehydrate an (n, 10) double tensor into a model table. Reconstructed rows have ...
JointType
URDF joint type, restricted to arm-relevant joints.
Definition kinematics_model_table.hpp:29
Kinematics data in URDF format with optional meshes by URDF filepath.
Definition kinematics.hpp:53
One row of the model table: the per-joint URDF fields.
Definition kinematics_model_table.hpp:38
Definition linear_algebra.hpp:25