namespace mrpt::opengl::stock_objects

Overview

A collection of pre-built 3D objects for quick insertion in opengl::Scene objects.

namespace stock_objects {

// global functions

CSetOfObjects::Ptr RobotRhodon();
CSetOfObjects::Ptr RobotGiraff();
CSetOfObjects::Ptr RobotPioneer();
CSetOfObjects::Ptr CornerXYZ(float scale = 1.0);
CSetOfObjects::Ptr CornerXYZEye();
CSetOfObjects::Ptr CornerXYZSimple(float scale = 1.0, float lineWidth = 1.0);
CSetOfObjects::Ptr CornerXYSimple(float scale = 1.0, float lineWidth = 1.0);
CSetOfObjects::Ptr BumblebeeCamera();
CSetOfObjects::Ptr Hokuyo_URG();
CSetOfObjects::Ptr Hokuyo_UTM();
CSetOfObjects::Ptr Househam_Sprayer();

} // namespace stock_objects

Global Functions

CSetOfObjects::Ptr RobotRhodon()

Returns a representation of Rhodon.

The generated object must be inserted in a opengl::Scene or opengl::CSetOfObjects.

CSetOfObjects::Ptr RobotGiraff()

Returns a representation of RobotGiraff.

The generated object must be inserted in a opengl::Scene or opengl::CSetOfObjects.

CSetOfObjects::Ptr RobotPioneer()

Returns a representation of a Pioneer II mobile base.

The generated object must be inserted in a opengl::Scene or opengl::CSetOfObjects.

CSetOfObjects::Ptr CornerXYZ(float scale = 1.0)

Returns three arrows representing a X,Y,Z 3D corner.

The generated object must be inserted in a opengl::Scene or opengl::CSetOfObjects.

See also:

CornerXYZSimple, CornerXYSimple, CornerXYZEye

CSetOfObjects::Ptr CornerXYZEye()

Returns three arrows representing a X,Y,Z 3D corner.

Differently from CornerXYZ the arrowhead of Z axis ends where the object is placed. This is useful if you want to place this object with the same position and orientation of a camera. The generated object must be inserted in a opengl::Scene or opengl::CSetOfObjects.

See also:

CornerXYZSimple, CornerXYSimple

CSetOfObjects::Ptr CornerXYZSimple(float scale = 1.0, float lineWidth = 1.0)

Returns three arrows representing a X,Y,Z 3D corner (just thick lines instead of complex arrows for faster rendering than CornerXYZ).

The generated object must be inserted in a opengl::Scene or opengl::CSetOfObjects.

See also:

CornerXYZ, CornerXYSimple

CSetOfObjects::Ptr CornerXYSimple(float scale = 1.0, float lineWidth = 1.0)

Returns two arrows representing a X,Y 2D corner (just thick lines, fast to render).

The generated object must be inserted in a opengl::Scene or opengl::CSetOfObjects.

See also:

CornerXYZSimple, CornerXYZ, CornerXYZEye

CSetOfObjects::Ptr BumblebeeCamera()

Returns a simple 3D model of a PointGrey Bumblebee stereo camera.

The generated object must be inserted in a opengl::Scene or opengl::CSetOfObjects.

CSetOfObjects::Ptr Hokuyo_URG()

Returns a simple 3D model of a Hokuyo URG scanner.

The generated object must be inserted in a opengl::Scene or opengl::CSetOfObjects.

CSetOfObjects::Ptr Hokuyo_UTM()

Returns a simple 3D model of a Hokuyo UTM scanner.

The generated object must be inserted in a opengl::Scene or opengl::CSetOfObjects.

CSetOfObjects::Ptr Househam_Sprayer()

Returns a simple 3D model of a househam sprayer.

The generated object must be inserted in a opengl::Scene or opengl::CSetOfObjects.