|
EIGEN_MAKE_ALIGNED_OPERATOR_NEW | CoinVisualizationFactory () |
|
| ~CoinVisualizationFactory () override |
|
void | init (int &argc, char *argv[], const std::string &appName) override |
|
VisualizationNodePtr | getVisualizationFromPrimitives (const std::vector< Primitive::PrimitivePtr > &primitives, bool boundingBox=false, Color color=Color::Gray()) override |
|
VisualizationNodePtr | getVisualizationFromFile (const std::string &filename, bool boundingBox=false, float scaleX=1.0f, float scaleY=1.0f, float scaleZ=1.0f) override |
|
virtual VisualizationNodePtr | getVisualizationFromFileWithAssimp (const std::string &filename, bool boundingBox=false, float scaleX=1.0f, float scaleY=1.0f, float scaleZ=1.0f) |
|
virtual VisualizationNodePtr | getVisualizationFromCoin3DFile (const std::string &filename, bool boundingBox=false) |
|
VisualizationNodePtr | getVisualizationFromFile (const std::ifstream &ifs, bool boundingBox=false, float scaleX=1.0f, float scaleY=1.0f, float scaleZ=1.0f) override |
|
virtual VisualizationNodePtr | getVisualizationFromString (const std::string &modelString, bool boundingBox=false) |
|
virtual VisualizationPtr | getVisualization (const std::vector< VisualizationNodePtr > &visus) |
|
virtual VisualizationPtr | getVisualization (VisualizationNodePtr visu) |
|
VisualizationNodePtr | createBox (float width, float height, float depth, float colorR=0.5f, float colorG=0.5f, float colorB=0.5f) override |
|
VisualizationNodePtr | createLine (const Eigen::Vector3f &from, const Eigen::Vector3f &to, float width=1.0f, float colorR=0.5f, float colorG=0.5f, float colorB=0.5f) override |
|
VisualizationNodePtr | createLine (const Eigen::Matrix4f &from, const Eigen::Matrix4f &to, float width=1.0f, float colorR=0.5f, float colorG=0.5f, float colorB=0.5f) override |
|
VisualizationNodePtr | createSphere (float radius, float colorR=0.5f, float colorG=0.5f, float colorB=0.5f) override |
|
VisualizationNodePtr | createCylinder (float radius, float height, float colorR=0.5f, float colorG=0.5f, float colorB=0.5f) override |
|
VisualizationNodePtr | createCircle (float radius, float circleCompletion, float width, float colorR=1.0f, float colorG=0.5f, float colorB=0.5f, size_t numberOfCircleParts=30) override |
|
VisualizationNodePtr | createCoordSystem (float scaling=1.0f, std::string *text=NULL, float axisLength=100.0f, float axisSize=3.0f, int nrOfBlocks=10) override |
|
VisualizationNodePtr | createBoundingBox (const BoundingBox &bbox, bool wireFrame=false) override |
|
VisualizationNodePtr | createVertexVisualization (const Eigen::Vector3f &position, float radius, float transparency, float colorR=0.5f, float colorG=0.5f, float colorB=0.5f) override |
|
VisualizationNodePtr | createTriMeshModelVisualization (const TriMeshModelPtr &model, const Eigen::Matrix4f &pose=Eigen::Matrix4f::Identity(), float scaleX=1.0f, float scaleY=1.0f, float scaleZ=1.0f) override |
|
VisualizationNodePtr | createTriMeshModelVisualization (const TriMeshModelPtr &model, bool showNormals, const Eigen::Matrix4f &pose, bool showLines=true) override |
|
VisualizationNodePtr | createPlane (const Eigen::Vector3f &position, const Eigen::Vector3f &normal, float extend, float transparency, float colorR=0.5f, float colorG=0.5f, float colorB=0.5f) override |
|
VisualizationNodePtr | createArrow (const Eigen::Vector3f &n, float length=50.0f, float width=2.0f, const Color &color=Color::Gray()) override |
|
VisualizationNodePtr | createCircleArrow (float radius, float tubeRadius, float completion=1, float colorR=0.5f, float colorG=0.5f, float colorB=0.5f, float transparency=0.0f, int sides=8, int rings=30) override |
|
VisualizationNodePtr | createTrajectory (TrajectoryPtr t, Color colorNode=Color::Blue(), Color colorLine=Color::Gray(), float nodeSize=15.0f, float lineSize=4.0f) override |
|
VisualizationNodePtr | createText (const std::string &text, bool billboard=false, float scaling=1.0f, Color c=Color::Black(), float offsetX=20.0f, float offsetY=20.0f, float offsetZ=0.0f) override |
|
VisualizationNodePtr | createTorus (float radius, float tubeRadius, float completion=1, float colorR=0.5f, float colorG=0.5f, float colorB=0.5f, float transparency=0.0f, int sides=8, int rings=30) override |
|
VisualizationNodePtr | createEllipse (float x, float y, float z, bool showAxes=true, float axesHeight=4.0f, float axesWidth=8.0f) override |
|
void | applyDisplacement (VisualizationNodePtr o, Eigen::Matrix4f &m) override |
|
VisualizationNodePtr | createVisualization () override |
|
VisualizationNodePtr | createUnitedVisualization (const std::vector< VisualizationNodePtr > &visualizations) const override |
|
void | cleanup () override |
|
| VisualizationFactory ()=default |
|
virtual | ~VisualizationFactory ()=default |
|
virtual VisualizationNodePtr | createPlane (const MathTools::Plane &plane, float extend, float transparency, float colorR=0.5f, float colorG=0.5f, float colorB=0.5f) |
|
void | setDescription (const std::string &newDescription) |
|
std::string | getDescription () const |
|
|
static SoSeparator * | CreateConvexHull2DVisualization (const MathTools::ConvexHull2DPtr ch, MathTools::Plane &p, VisualizationFactory::Color colorInner=VisualizationFactory::Color::Blue(), VisualizationFactory::Color colorLine=VisualizationFactory::Color::Black(), float lineSize=5.0f, const Eigen::Vector3f &offset=Eigen::Vector3f::Zero()) |
|
static SoSeparator * | CreatePolygonVisualization (const std::vector< Eigen::Vector3f > &points, VisualizationFactory::Color colorInner=VisualizationFactory::Color::Blue(), VisualizationFactory::Color colorLine=VisualizationFactory::Color::Black(), float lineSize=4.0f) |
|
static SoSeparator * | CreatePolygonVisualization (const std::vector< Eigen::Vector3f > &points, VisualizationFactory::PhongMaterial mat, VisualizationFactory::Color colorLine=VisualizationFactory::Color::Black(), float lineSize=4.0f) |
|
static SoSeparator * | CreatePlaneVisualization (const Eigen::Vector3f &position, const Eigen::Vector3f &normal, float extend, float transparency, bool grid=true, float colorR=0.5f, float colorG=0.5f, float colorB=0.5f, std::string textureFile=std::string()) |
|
static SoSeparator * | CreateCoordSystemVisualization (float scaling=1.0f, std::string *text=NULL, float axisLength=100.0f, float axisSize=3.0f, int nrOfBlocks=10) |
|
static SoSeparator * | CreateBoundingBox (SoNode *ivModel, bool wireFrame=false) |
|
static SoSeparator * | CreateGrid (float width, float depth, float widthMosaic, float depthMosaic, bool InvertNormal, const char *pFileName, float Transparency) |
|
static SoSeparator * | CreateBBoxVisualization (const BoundingBox &bbox, bool wireFrame=false) |
|
static SoSeparator * | CreatePointVisualization (const MathTools::ContactPoint &point, bool showNormals=false) |
|
static SoSeparator * | CreatePointsVisualization (const std::vector< MathTools::ContactPoint > &points, bool showNormals=false) |
|
static SoSeparator * | CreateArrow (const Eigen::Vector3f &pt, const Eigen::Vector3f &n, float length=50.0f, float width=2.0f, const Color &color=Color::Gray()) |
|
static SoSeparator * | CreateArrow (const Eigen::Vector3f &n, float length=50.0f, float width=2.0f, const Color &color=Color::Gray()) |
|
static SoSeparator * | CreateVertexVisualization (const Eigen::Vector3f &position, float radius, float transparency, float colorR=0.5f, float colorG=0.5f, float colorB=0.5f) |
|
static SoSeparator * | CreateVerticesVisualization (const std::vector< Eigen::Vector3f > &positions, float radius, VisualizationFactory::Color color=VisualizationFactory::Color::Gray()) |
|
static void | RemoveDuplicateTextures (SoNode *node, const std::string ¤tPath) |
|
static SoSeparator * | CreateEllipse (float x, float y, float z, SoMaterial *matBody=NULL, bool showAxes=true, float axesHeight=4.0f, float axesWidth=8.0f, SoMaterial *matAxisX=NULL, SoMaterial *matAxisY=NULL, SoMaterial *matAxisZ=NULL) |
|
static SoSeparator * | CreateSphere (float radius, float colorR, float colorG, float colorB) |
|
static SoSeparator * | CreateSphere (const Eigen::Vector3f &p, float radius, float colorR, float colorG, float colorB) |
|
static SoSeparator * | CreateCylindroid (float axisLengthX, float axisLengthY, float height, SoMaterial *matBody=nullptr) |
|
static SoSeparator * | Create2DMap (const Eigen::MatrixXf &d, float extendCellX, float extendCellY, const VirtualRobot::ColorMap cm=VirtualRobot::ColorMap(VirtualRobot::ColorMap::eHot), bool drawZeroCells=false, bool drawLines=true) |
|
static SoSeparator * | Create2DHeightMap (const Eigen::MatrixXf &d, float extendCellX, float extendCellY, float heightZ, const VirtualRobot::ColorMap cm=VirtualRobot::ColorMap(VirtualRobot::ColorMap::eHot), bool drawZeroCells=false, bool drawLines=true) |
|
static SoSeparator * | CreateOOBBVisualization (const MathTools::OOBB &oobb, Color colorLine=Color::Gray(), float lineSize=4.0f) |
|
static SoSeparator * | CreateSegmentVisualization (const MathTools::Segment &s, Color colorLine=Color::Gray(), float lineSize=4.0f) |
|
static SoSeparator * | Colorize (SoNode *model, VisualizationFactory::Color c) |
|
static SbMatrix | getSbMatrix (const Eigen::Matrix4f &m) |
|
static SbMatrix | getSbMatrixVec (const Eigen::Vector3f &m) |
|
static SoSeparator * | CreateGraspSetVisualization (GraspSetPtr graspSet, EndEffectorPtr eef, const Eigen::Matrix4f &pose=Eigen::Matrix4f::Identity(), SceneObject::VisualizationType visu=SceneObject::Full) |
|
static SoSeparator * | CreateGraspVisualization (GraspPtr grasp, SoSeparator *eefVisu, const Eigen::Matrix4f &pose=Eigen::Matrix4f::Identity()) |
|
static SoSeparator * | CreateGraspVisualization (GraspPtr grasp, EndEffectorPtr eef, const Eigen::Matrix4f &pose=Eigen::Matrix4f::Identity(), SceneObject::VisualizationType visu=SceneObject::Full) |
|
static SoSeparator * | CreateEndEffectorVisualization (EndEffectorPtr eef, SceneObject::VisualizationType=SceneObject::Full) |
|
static SoNode * | getColorNode (Color color) |
|
static SoSeparator * | CreateText (const std::string &s, float offsetX=20.0f, float offsetY=20.0f, float offsetZ=0.0f) |
|
static SoSeparator * | CreateBillboardText (const std::string &s, float offsetX=20.0f, float offsetY=20.0f, float offsetZ=0.0f) |
|
static SoNode * | getCoinVisualization (RobotPtr robot, SceneObject::VisualizationType visuType, bool selectable=true) |
|
static SoNode * | getCoinVisualization (SceneObjectPtr object, SceneObject::VisualizationType visuType) |
|
static SoNode * | getCoinVisualization (VirtualRobot::EndEffector::ContactInfoVector &contacts, float frictionConeHeight=30.0f, float frictionConeRadius=15.0f, bool scaleAccordingToApproachDir=true) |
|
static SoNode * | getCoinVisualization (EndEffector::ContactInfo &contact, float frictionConeHeight=30.0f, float frictionConeRadius=15.0f, bool scaleAccordingToApproachDir=true) |
|
static SoNode * | getCoinVisualization (VisualizationNodePtr visu) |
|
static SoNode * | getCoinVisualization (TriMeshModelPtr model) |
|
static SoNode * | getCoinVisualization (TriMeshModelPtr model, bool shownormals, VisualizationFactory::Color color=VisualizationFactory::Color::Gray(), bool showLines=true) |
|
static SoNode * | getCoinVisualization (TrajectoryPtr t, Color colorNode=Color::Blue(), Color colorLine=Color::Gray(), float nodeSize=15.0f, float lineSize=4.0f) |
|
static SoNode * | getCoinVisualization (WorkspaceRepresentationPtr reachSpace, const VirtualRobot::ColorMap cm, bool transformToGlobalPose=true, float maxZGlobal=1e10, float minAngle=-M_PI, float maxAngle=M_PI) |
|
static SoNode * | getCoinVisualization (WorkspaceRepresentationPtr reachSpace, VirtualRobot::ColorMap cm, const Eigen::Vector3f &axis, bool transformToGlobalPose=true, unsigned char minValue=0, float arrowSize=0, int nrRotations=1) |
|
static SoNode * | getCoinVisualization (WorkspaceRepresentationPtr reachSpace, const Eigen::Vector3f &fixedEEFOrientationGlobalRPY, VirtualRobot::ColorMap cm=VirtualRobot::ColorMap(VirtualRobot::ColorMap::eHot), bool transformToGlobalPose=true, const Eigen::Vector3f &axis=Eigen::Vector3f(0, 0, 1.0f), unsigned char minValue=0, float arrowSize=0) |
| Helper method: Create reach space visualization of a fixed orientation. More...
|
|
static SoNode * | getCoinVisualization (WorkspaceRepresentationPtr reachSpace, int a, int b, int c, int nrBestEntries, SoSeparator *arrow, const VirtualRobot::ColorMap &cm, bool transformToGlobalPose, unsigned char minValue) |
| helper method: create nrBestEntries arrows in direction of maximum orientation for voxelPosition (a,b,c) More...
|
|
static SoNode * | getCoinVisualization (TSRConstraintPtr constraint, const Color &color) |
|
static SoNode * | getCoinVisualization (BalanceConstraintPtr constraint, const Color &color) |
|
static SoNode * | getCoinVisualization (PoseConstraintPtr constraint, const Color &color) |
|
static SoNode * | getCoinVisualization (PositionConstraintPtr constraint, const Color &color) |
|
static SoNode * | getCoinVisualization (SupportPolygonPtr supportPolygon, const Color &color) |
|
static SoMatrixTransform * | getMatrixTransform (const Eigen::Matrix4f &m) |
|
static SoMatrixTransform * | getMatrixTransformScaleMM2M (const Eigen::Matrix4f &m) |
|
static SoNode * | createCoinLine (const Eigen::Matrix4f &from, const Eigen::Matrix4f &to, float width, float colorR, float colorG, float colorB) |
|
static SoNode * | createCoinPartCircle (float radius, float circleCompletion, float width, float colorR, float colorG, float colorB, size_t numberOfCircleParts, float offset=0) |
|
static SoNode * | getCoinVisualization (WorkspaceGridPtr reachGrid, VirtualRobot::ColorMap cm, bool transformToGlobalPose=true) |
|
static SoNode * | getCoinVisualization (VirtualRobot::WorkspaceRepresentation::WorkspaceCut2DPtr cutXY, VirtualRobot::ColorMap cm, const Eigen::Vector3f &normal=Eigen::Vector3f::UnitY(), float maxEntry=0.0f, float minAngle=-M_PI, float maxAngle=M_PI) |
|
static SoOffscreenRenderer * | createOffscreenRenderer (unsigned int width, unsigned int height) |
|
static bool | renderOffscreen (SoOffscreenRenderer *renderer, RobotNodePtr camNode, SoNode *scene, unsigned char **buffer, float zNear=10.f, float zFar=100000.f, float fov=M_PI/4) |
|
static bool | renderOffscreenRgbDepthPointcloud (RobotNodePtr camNode, SoNode *scene, short width, short height, bool renderRgbImage, std::vector< unsigned char > &rgbImage, bool renderDepthImgae, std::vector< float > &depthImage, bool renderPointcloud, std::vector< Eigen::Vector3f > &pointCloud, float zNear=10.f, float zFar=100000.f, float vertFov=M_PI/4, float nanValue=NAN) |
| Renders the given scene from the given cam position and outputs (optionally) the rgb image, depth image and point cloud. More...
|
|
static bool | renderOffscreenRgbDepthPointcloud (SoOffscreenRenderer *renderer, RobotNodePtr camNode, SoNode *scene, short width, short height, bool renderRgbImage, std::vector< unsigned char > &rgbImage, bool renderDepthImage, std::vector< float > &depthImage, bool renderPointcloud, std::vector< Eigen::Vector3f > &pointCloud, float zNear=10.f, float zFar=100000.f, float vertFov=M_PI/4, float nanValue=NAN) |
| Renders the given scene from the given cam position and outputs (optionally) the rgb image, depth image and point cloud. This version is much faster if always the same SoOffscreenRenderer is passed in. More...
|
|
static bool | renderOffscreenRgbDepthPointcloud (SoOffscreenRenderer *renderer, const Eigen::Matrix4f camPose, SoNode *scene, short width, short height, bool renderRgbImage, std::vector< unsigned char > &rgbImage, bool renderDepthImage, std::vector< float > &depthImage, bool renderPointcloud, std::vector< Eigen::Vector3f > &pointCloud, float zNear=10.f, float zFar=100000.f, float vertFov=M_PI/4, float nanValue=NAN) |
|
static bool | renderOffscreenRgbDepthPointcloud (RobotNodePtr camNode, SoNode *scene, short width, short height, std::vector< unsigned char > &rgbImage, std::vector< float > &depthImage, std::vector< Eigen::Vector3f > &pointCloud, float zNear=10.f, float zFar=100000.f, float vertFov=M_PI/4, float nanValue=NAN) |
| Renders the given scene from the given cam position and outputs the rgb image, depth image and point cloud. More...
|
|
static bool | renderOffscreen (SoOffscreenRenderer *renderer, SoPerspectiveCamera *cam, SoNode *scene, unsigned char **buffer) |
|
static SoGroup * | convertSoFileChildren (SoGroup *orig) |
|
static SoNode * | copyNode (SoNode *n) |
|
static std::string | getName () |
|
static std::shared_ptr< VisualizationFactory > | createInstance (void *) |
|
static std::shared_ptr< VisualizationFactory > | fromName (const std::string &name, void * params) |
|
static std::shared_ptr< VisualizationFactory > | first (void * params) |
|
static std::string | getName () |
|
static std::shared_ptr< VisualizationFactory > | createInstance (void *) |
|
static void | registerClass (const std::string &name, initialisationFunction init) |
|
static std::vector< std::string > | getSubclassList () |
|