scenario_simulator_v2 C++ API
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
simple_sensor_simulator::primitives::Primitive Class Reference

#include <primitive.hpp>

Inheritance diagram for simple_sensor_simulator::primitives::Primitive:
Inheritance graph
[legend]

Public Member Functions

 Primitive (std::string type, const geometry_msgs::msg::Pose &pose)
 
virtual ~Primitive ()=default
 
unsigned int addToScene (RTCDevice device, RTCScene scene)
 
std::vector< VertexgetVertex () const
 
std::vector< TrianglegetTriangles () const
 
std::vector< geometry_msgs::msg::Point > get2DConvexHull () const
 
std::vector< geometry_msgs::msg::Point > get2DConvexHull (const geometry_msgs::msg::Pose &sensor_pose) const
 
std::optional< double > getMax (const math::geometry::Axis &axis) const
 
std::optional< double > getMin (const math::geometry::Axis &axis) const
 
std::optional< double > getMax (const math::geometry::Axis &axis, const geometry_msgs::msg::Pose &sensor_pose) const
 
std::optional< double > getMin (const math::geometry::Axis &axis, const geometry_msgs::msg::Pose &sensor_pose) const
 

Public Attributes

const std::string type
 
const geometry_msgs::msg::Pose pose
 

Protected Member Functions

std::vector< Vertextransform () const
 
std::vector< Vertextransform (const geometry_msgs::msg::Pose &sensor_pose) const
 

Protected Attributes

std::vector< Vertexvertices_
 
std::vector< Triangletriangles_
 

Constructor & Destructor Documentation

◆ Primitive()

simple_sensor_simulator::primitives::Primitive::Primitive ( std::string  type,
const geometry_msgs::msg::Pose &  pose 
)

◆ ~Primitive()

virtual simple_sensor_simulator::primitives::Primitive::~Primitive ( )
virtualdefault

Member Function Documentation

◆ addToScene()

unsigned int simple_sensor_simulator::primitives::Primitive::addToScene ( RTCDevice  device,
RTCScene  scene 
)

◆ get2DConvexHull() [1/2]

std::vector< geometry_msgs::msg::Point > simple_sensor_simulator::primitives::Primitive::get2DConvexHull ( ) const

◆ get2DConvexHull() [2/2]

std::vector< geometry_msgs::msg::Point > simple_sensor_simulator::primitives::Primitive::get2DConvexHull ( const geometry_msgs::msg::Pose &  sensor_pose) const

◆ getMax() [1/2]

std::optional< double > simple_sensor_simulator::primitives::Primitive::getMax ( const math::geometry::Axis axis) const

◆ getMax() [2/2]

std::optional< double > simple_sensor_simulator::primitives::Primitive::getMax ( const math::geometry::Axis axis,
const geometry_msgs::msg::Pose &  sensor_pose 
) const

◆ getMin() [1/2]

std::optional< double > simple_sensor_simulator::primitives::Primitive::getMin ( const math::geometry::Axis axis) const

◆ getMin() [2/2]

std::optional< double > simple_sensor_simulator::primitives::Primitive::getMin ( const math::geometry::Axis axis,
const geometry_msgs::msg::Pose &  sensor_pose 
) const

◆ getTriangles()

std::vector< Triangle > simple_sensor_simulator::primitives::Primitive::getTriangles ( ) const

◆ getVertex()

std::vector< Vertex > simple_sensor_simulator::primitives::Primitive::getVertex ( ) const

◆ transform() [1/2]

std::vector< Vertex > simple_sensor_simulator::primitives::Primitive::transform ( ) const
protected

◆ transform() [2/2]

std::vector< Vertex > simple_sensor_simulator::primitives::Primitive::transform ( const geometry_msgs::msg::Pose &  sensor_pose) const
protected

Member Data Documentation

◆ pose

const geometry_msgs::msg::Pose simple_sensor_simulator::primitives::Primitive::pose

◆ triangles_

std::vector<Triangle> simple_sensor_simulator::primitives::Primitive::triangles_
protected

◆ type

const std::string simple_sensor_simulator::primitives::Primitive::type

◆ vertices_

std::vector<Vertex> simple_sensor_simulator::primitives::Primitive::vertices_
protected

The documentation for this class was generated from the following files: