1#ifndef ROBOTOC_SWITCHING_CONSTRAINT_DATA_HPP_
2#define ROBOTOC_SWITCHING_CONSTRAINT_DATA_HPP_
71 Eigen::Block<Eigen::MatrixXd>
Pq() {
72 return Pq_full_.topLeftCorner(dims_, dimv_);
78 const Eigen::Block<const Eigen::MatrixXd>
Pq()
const {
79 return Pq_full_.topLeftCorner(dims_, dimv_);
86 int dims()
const {
return dims_; }
89 Eigen::MatrixXd Pq_full_;
Dynamics and kinematics model of robots. Wraps pinocchio::Model and pinocchio::Data....
Definition: robot.hpp:32
Data for the switching constraint.
Definition: switching_constraint_data.hpp:13
Eigen::VectorXd PqT_xi
Definition: switching_constraint_data.hpp:64
void setDimension(const int dims)
Sets the dimension of the switching constraint.
Definition: switching_constraint_data.hpp:55
Eigen::VectorXd q
Definition: switching_constraint_data.hpp:60
SwitchingConstraintData & operator=(const SwitchingConstraintData &)=default
Default copy assign operator.
int dims() const
Returns the dimension of the switching constraint.
Definition: switching_constraint_data.hpp:86
Eigen::Block< Eigen::MatrixXd > Pq()
Jacobian of the original contact position constraint w.r.t. q.
Definition: switching_constraint_data.hpp:71
Eigen::VectorXd dq
Definition: switching_constraint_data.hpp:62
SwitchingConstraintData(SwitchingConstraintData &&) noexcept=default
Default move constructor.
const Eigen::Block< const Eigen::MatrixXd > Pq() const
const version of SwitchingConstraintJacobian::Pq().
Definition: switching_constraint_data.hpp:78
~SwitchingConstraintData()=default
Default destructor.
SwitchingConstraintData()
Default constructor.
SwitchingConstraintData(const Robot &robot)
Constructs a switching constraint.
SwitchingConstraintData(const SwitchingConstraintData &)=default
Default copy constructor.
Definition: constraint_component_base.hpp:17