|
This class provides the draw options for a given frame (static Matrix, or a robot node). More...
#include <RobotAPI/components/DebugDrawer/DebugDrawerHelper.h>
Public Member Functions | |
void | drawArrow (const std::string &name, const Eigen::Vector3f &pos, const Eigen::Vector3f &direction, const DrawColor &color, float length, float width) |
void | drawBox (const std::string &name, const Eigen::Matrix4f &pose, const Eigen::Vector3f &size, const DrawColor &color) |
void | drawBox (const std::string &name, const Eigen::Matrix4f &pose, float size, const DrawColor &color) |
void | drawBox (const std::string &name, const Eigen::Vector3f &position, float size, const DrawColor &color) |
template<class FloatT > | |
void | drawBox (const std::string &name, const simox::OrientedBox< FloatT > &box, const DrawColor &color) |
template<class FloatT > | |
void | drawBox (const std::string &name, const simox::XYConstrainedOrientedBox< FloatT > &box, const DrawColor &color) |
void | drawLine (const std::string &name, const Eigen::Vector3f &p1, const Eigen::Vector3f &p2) |
void | drawLine (const std::string &name, const Eigen::Vector3f &p1, const Eigen::Vector3f &p2, float width, const DrawColor &color) |
void | drawLines (const std::string &prefix, const std::vector< Eigen::Matrix4f > &ps) |
void | drawLines (const std::string &prefix, const std::vector< Eigen::Matrix4f > &ps, float width, const DrawColor &color) |
void | drawLines (const std::string &prefix, const std::vector< Eigen::Vector3f > &ps) |
void | drawLines (const std::string &prefix, const std::vector< Eigen::Vector3f > &ps, float width, const DrawColor &color) |
void | drawPointCloud (const std::string &name, const std::vector< Eigen::Vector3f > &points, float pointSize, const DrawColor &color) |
void | drawPose (const std::string &name, const Eigen::Matrix4f &pose) |
void | drawPose (const std::string &name, const Eigen::Matrix4f &pose, float scale) |
void | drawPoses (const std::string &prefix, const std::vector< Eigen::Matrix4f > &poses) |
void | drawPoses (const std::string &prefix, const std::vector< Eigen::Matrix4f > &poses, float scale) |
void | drawRobot (const std::string &name, const std::string &robotFile, const std::string &armarxProject, const Eigen::Matrix4f &pose, const DrawColor &color) |
void | drawSphere (const std::string &name, const Eigen::Vector3f &position, float size, const DrawColor &color) |
void | drawText (const std::string &name, const Eigen::Vector3f &p1, const std::string &text, const DrawColor &color, int size) |
FrameView (class DebugDrawerHelper &helper, const Eigen::Matrix4f frame=Eigen::Matrix4f::Identity()) | |
FrameView (class DebugDrawerHelper &helper, const VirtualRobot::RobotNodePtr &rn) | |
PosePtr | makeGlobal (const Eigen::Matrix4f &pose) const |
Vector3Ptr | makeGlobal (const Eigen::Vector3f &position) const |
Vector3Ptr | makeGlobalDirection (const Eigen::Vector3f &direction) const |
Eigen::Vector3f | makeGlobalDirectionEigen (const Eigen::Vector3f &direction) const |
Eigen::Matrix4f | makeGlobalEigen (const Eigen::Matrix4f &pose) const |
Eigen::Vector3f | makeGlobalEigen (const Eigen::Vector3f &position) const |
void | setRobotColor (const std::string &name, const DrawColor &color) |
void | setRobotConfig (const std::string &name, const std::map< std::string, float > &config) |
void | setRobotPose (const std::string &name, const Eigen::Matrix4f &pose) |
Protected Attributes | |
Eigen::Matrix4f | _fallbackFrame = Eigen::Matrix4f::Identity() |
class DebugDrawerHelper * | _helper |
VirtualRobot::RobotNodePtr | _rn |
This class provides the draw options for a given frame (static Matrix, or a robot node).
It is used by the DebugDrawerHelper.
Definition at line 47 of file DebugDrawerHelper.h.
FrameView | ( | class DebugDrawerHelper & | helper, |
const Eigen::Matrix4f | frame = Eigen::Matrix4f::Identity() |
||
) |
Definition at line 37 of file DebugDrawerHelper.cpp.
FrameView | ( | class DebugDrawerHelper & | helper, |
const VirtualRobot::RobotNodePtr & | rn | ||
) |
Definition at line 41 of file DebugDrawerHelper.cpp.
void drawBox | ( | const std::string & | name, |
const Eigen::Matrix4f & | pose, | ||
const Eigen::Vector3f & | size, | ||
const DrawColor & | color | ||
) |
Definition at line 107 of file DebugDrawerHelper.cpp.
void drawBox | ( | const std::string & | name, |
const Eigen::Matrix4f & | pose, | ||
float | size, | ||
const DrawColor & | color | ||
) |
void drawBox | ( | const std::string & | name, |
const Eigen::Vector3f & | position, | ||
float | size, | ||
const DrawColor & | color | ||
) |
|
inline |
|
inline |
void drawLine | ( | const std::string & | name, |
const Eigen::Vector3f & | p1, | ||
const Eigen::Vector3f & | p2 | ||
) |
void drawLine | ( | const std::string & | name, |
const Eigen::Vector3f & | p1, | ||
const Eigen::Vector3f & | p2, | ||
float | width, | ||
const DrawColor & | color | ||
) |
Definition at line 114 of file DebugDrawerHelper.cpp.
void drawLines | ( | const std::string & | prefix, |
const std::vector< Eigen::Matrix4f > & | ps | ||
) |
void drawLines | ( | const std::string & | prefix, |
const std::vector< Eigen::Matrix4f > & | ps, | ||
float | width, | ||
const DrawColor & | color | ||
) |
void drawLines | ( | const std::string & | prefix, |
const std::vector< Eigen::Vector3f > & | ps | ||
) |
void drawLines | ( | const std::string & | prefix, |
const std::vector< Eigen::Vector3f > & | ps, | ||
float | width, | ||
const DrawColor & | color | ||
) |
void drawPointCloud | ( | const std::string & | name, |
const std::vector< Eigen::Vector3f > & | points, | ||
float | pointSize, | ||
const DrawColor & | color | ||
) |
void drawPose | ( | const std::string & | name, |
const Eigen::Matrix4f & | pose | ||
) |
Definition at line 93 of file DebugDrawerHelper.cpp.
void drawPose | ( | const std::string & | name, |
const Eigen::Matrix4f & | pose, | ||
float | scale | ||
) |
void drawPoses | ( | const std::string & | prefix, |
const std::vector< Eigen::Matrix4f > & | poses | ||
) |
void drawPoses | ( | const std::string & | prefix, |
const std::vector< Eigen::Matrix4f > & | poses, | ||
float | scale | ||
) |
void drawRobot | ( | const std::string & | name, |
const std::string & | robotFile, | ||
const std::string & | armarxProject, | ||
const Eigen::Matrix4f & | pose, | ||
const DrawColor & | color | ||
) |
void drawSphere | ( | const std::string & | name, |
const Eigen::Vector3f & | position, | ||
float | size, | ||
const DrawColor & | color | ||
) |
void drawText | ( | const std::string & | name, |
const Eigen::Vector3f & | p1, | ||
const std::string & | text, | ||
const DrawColor & | color, | ||
int | size | ||
) |
PosePtr makeGlobal | ( | const Eigen::Matrix4f & | pose | ) | const |
Definition at line 73 of file DebugDrawerHelper.cpp.
Vector3Ptr makeGlobal | ( | const Eigen::Vector3f & | position | ) | const |
Vector3Ptr makeGlobalDirection | ( | const Eigen::Vector3f & | direction | ) | const |
Definition at line 83 of file DebugDrawerHelper.cpp.
Eigen::Vector3f makeGlobalDirectionEigen | ( | const Eigen::Vector3f & | direction | ) | const |
Eigen::Matrix4f makeGlobalEigen | ( | const Eigen::Matrix4f & | pose | ) | const |
Eigen::Vector3f makeGlobalEigen | ( | const Eigen::Vector3f & | position | ) | const |
Definition at line 55 of file DebugDrawerHelper.cpp.
void setRobotColor | ( | const std::string & | name, |
const DrawColor & | color | ||
) |
Definition at line 174 of file DebugDrawerHelper.cpp.
void setRobotConfig | ( | const std::string & | name, |
const std::map< std::string, float > & | config | ||
) |
Definition at line 169 of file DebugDrawerHelper.cpp.
void setRobotPose | ( | const std::string & | name, |
const Eigen::Matrix4f & | pose | ||
) |
|
protected |
Definition at line 110 of file DebugDrawerHelper.h.
|
protected |
Definition at line 109 of file DebugDrawerHelper.h.
|
protected |
Definition at line 111 of file DebugDrawerHelper.h.