30 #ifndef XPP_VIS_RVIZ_ROBOT_BUILDER_H_ 31 #define XPP_VIS_RVIZ_ROBOT_BUILDER_H_ 36 #include <visualization_msgs/MarkerArray.h> 38 #include <xpp_msgs/RobotParameters.h> 39 #include <xpp_msgs/RobotStateCartesian.h> 40 #include <xpp_msgs/TerrainInfo.h> 58 using Marker = visualization_msgs::Marker;
116 const EEPos& pos_W)
const;
120 Eigen::Quaterniond ori,
123 const EEPos& pos_W)
const;
126 const EEPos& pos_W)
const;
129 double friction_coeff)
const;
133 double diameter = 0.03)
const;
void FillWithInvisible(int max_size, MarkerVec &vec) const
Marker CreateBasePose(const Vector3d &pos, Eigen::Quaterniond ori, const ContactState &c) const
Marker CreatePendulum(const Vector3d &base_pos, const EEForces &f_W, const EEPos &pos_W) const
Marker CreateCopPos(const EEForces &f_W, const EEPos &pos_W) const
Marker CreateForceArrow(const Vector3d &f, const Vector3d &pos) const
void SetTerrainParameters(const xpp_msgs::TerrainInfo &msg)
Additional information that can be used for visualization.
Marker CreateGravityForce(const Vector3d &base_pos) const
Marker CreateSphere(const Vector3d &pos, double diameter=0.03) const
xpp_msgs::RobotParameters params_msg_
Endeffectors< Eigen::Vector3d > EndeffectorsPos
void SetRobotParameters(const xpp_msgs::RobotParameters &msg)
Provides additional robot info that can be used for visualization.
MarkerVec CreateFrictionCones(const EEPos &pos_W, const ContactState &c) const
MarkerVec CreateRangeOfMotion(const State3d &base) const
MarkerVec CreateEEForces(const EEForces &f_W, const EEPos &pos_W, const ContactState &c) const
MarkerVec CreateEEPositions(const EEPos &pos_W, const ContactState &c) const
xpp_msgs::TerrainInfo terrain_msg_
virtual ~RvizRobotBuilder()=default
Marker CreateFrictionCone(const Vector3d &pos_W, const Vector3d &terrain_normal, double friction_coeff) const
Marker CreateBox(const Vector3d &pos, Eigen::Quaterniond ori, const Vector3d &edge_length) const
RvizRobotBuilder()
Builds an uninitialized visualizer.
visualization_msgs::MarkerArray MarkerArray
std::vector< Marker > MarkerVec
MarkerArray BuildRobotState(const xpp_msgs::RobotStateCartesian &msg) const
Constructs the RVIZ markers from the ROS message.
const std::string frame_id_
visualization_msgs::Marker Marker
MarkerVec CreateSupportArea(const ContactState &c, const EEPos &pos_W) const
Constructs RVIZ markers that visualize a Cartesian robot state.