5 #include <franka/control_types.h>
23 #pragma clang diagnostic push
24 #pragma clang diagnostic ignored "-Wimplicit-conversion"
30 #pragma clang diagnostic pop
71 return {transform * end_effector_pose_, elbow_position_};
81 return {end_effector_pose_ * transform, elbow_position_};
111 return end_effector_pose_;
120 return elbow_position_;
124 Affine end_effector_pose_;
125 std::optional<double> elbow_position_;
Cartesian pose of a robot.
Definition: robot_pose.hpp:16
RobotPose changeEndEffectorFrame(const Affine &transform) const
Change the frame of the end effector by applying a transformation from the right side....
Definition: robot_pose.hpp:91
RobotPose()
Definition: robot_pose.cpp:49
RobotPose(const RobotPose &robot_pose)
std::optional< double > elbow_position() const
Get the elbow position.
Definition: robot_pose.hpp:119
Vector7d vector_repr() const
Get the vector representation of the pose, which consists of the end effector position and orientatio...
Definition: robot_pose.cpp:32
RobotPose withElbowPosition(const std::optional< double > elbow_position) const
Get the pose with a new elbow position.
Definition: robot_pose.hpp:101
franka::CartesianPose as_franka_pose() const
Convert this pose to a franka pose.
Definition: robot_pose.cpp:40
Affine end_effector_pose() const
Get the end effector pose.
Definition: robot_pose.hpp:110
RobotPose leftTransform(const Affine &transform) const
Transform this pose with a given affine transformation from the left side.
Definition: robot_pose.hpp:70
RobotPose rightTransform(const Affine &transform) const
Transform this pose with a given affine transformation from the right side.
Definition: robot_pose.hpp:80
Definition: gripper.cpp:3
CartesianState operator*(const Affine &transform, const CartesianState &cartesian_state)
Definition: cartesian_state.hpp:76
Eigen::Vector< double, 7 > Vector7d
Definition: types.hpp:9
Eigen::Vector< double, 6 > Vector6d
Definition: types.hpp:8
@ CartesianPose
Definition: control_signal_type.hpp:13
Eigen::Affine3d Affine
Definition: types.hpp:13