Public Member Functions | Private Member Functions | Private Attributes | List of all members
Visualization::SampleVisualizer Class Reference

#include <SampleVisualizer.h>

Inheritance diagram for Visualization::SampleVisualizer:
Inheritance graph
[legend]

Public Member Functions

void publishTrajectory (boost::shared_ptr< ros::Publisher > pPublisher, unsigned int &pMarkerId, const std::vector< Eigen::Vector3d > &pSamples)
 
void publishTrajectory (boost::shared_ptr< ros::Publisher > mPublisher, unsigned int &pMarkerId, const std::vector< Eigen::Vector3d > &pAbsoluteSample, const std::vector< Eigen::Vector3d > &pAbsoluteParentSample)
 
 SampleVisualizer ()
 
void setParentPose (boost::shared_ptr< ISM::Pose > pPose)
 
 ~SampleVisualizer ()
 
- Public Member Functions inherited from Visualization::AbstractExtendedVisualizer
 AbstractExtendedVisualizer ()
 
void setColors (const std_msgs::ColorRGBA &pFirstColor, const std_msgs::ColorRGBA &pSecondColor, const std_msgs::ColorRGBA &pThirdColor)
 
void setScaleFactor (const double pScaleFactor)
 
virtual ~AbstractExtendedVisualizer ()
 
- Public Member Functions inherited from Visualization::AbstractVisualizer
 AbstractVisualizer ()
 
void setFrameId (std::string pFrameId)
 
void setNamespace (std::string pNamespace)
 
virtual ~AbstractVisualizer ()
 

Private Member Functions

visualization_msgs::Marker generateArrowMessage (unsigned int &pMarkerId, Eigen::Vector3d pFrom, Eigen::Vector3d pTo)
 
visualization_msgs::Marker generateTrajectoryMarker (unsigned int &pMarkerId, const std::vector< Eigen::Vector3d > &pSamples)
 

Private Attributes

boost::shared_ptr< ISM::PosemParentPose
 

Additional Inherited Members

- Protected Member Functions inherited from Visualization::AbstractExtendedVisualizer
const std_msgs::ColorRGBA getColor (unsigned int pNumber)
 
double getScaleFactor ()
 
- Protected Member Functions inherited from Visualization::AbstractVisualizer
std::string getFrameId ()
 
std::string getNamespace ()
 

Detailed Description

Visualizer class for point clounds representing samples.

Author
Joachim Gehrung
Version
See SVN

Definition at line 60 of file SampleVisualizer.h.

Constructor & Destructor Documentation

Visualization::SampleVisualizer::SampleVisualizer ( )

Constructor.

Definition at line 22 of file SampleVisualizer.cpp.

Visualization::SampleVisualizer::~SampleVisualizer ( )

Destructor.

Definition at line 27 of file SampleVisualizer.cpp.

Member Function Documentation

visualization_msgs::Marker Visualization::SampleVisualizer::generateArrowMessage ( unsigned int &  pMarkerId,
Eigen::Vector3d  pFrom,
Eigen::Vector3d  pTo 
)
private

Generates an arrow between two points.

Parameters
pMarkerIdServes as unique id for the marker. Any marker sent with the same id will overwrite the old one.
pFromThe position to start the link from.
pToThe position to end the link.

Definition at line 134 of file SampleVisualizer.cpp.

visualization_msgs::Marker Visualization::SampleVisualizer::generateTrajectoryMarker ( unsigned int &  pMarkerId,
const std::vector< Eigen::Vector3d > &  pSamples 
)
private

Create a visualization marker message that contains the trajectory.

Parameters
pMarkerIdServes as unique id for the marker. Any marker sent with the same id will overwrite the old one.
pSamplesThe list of all samples.
Returns
A marker array holding the visualization messages.

Definition at line 91 of file SampleVisualizer.cpp.

void Visualization::SampleVisualizer::publishTrajectory ( boost::shared_ptr< ros::Publisher pPublisher,
unsigned int &  pMarkerId,
const std::vector< Eigen::Vector3d > &  pSamples 
)

Publishes a trajectory composed of the samples used for learning.

Parameters
pPublisherFor publishing the visualization message.
pMarkerIdServes as unique id for the marker. Any marker sent with the same id will overwrite the old one.
pSamplesThe list of all samples.

Definition at line 41 of file SampleVisualizer.cpp.

void Visualization::SampleVisualizer::publishTrajectory ( boost::shared_ptr< ros::Publisher mPublisher,
unsigned int &  pMarkerId,
const std::vector< Eigen::Vector3d > &  pAbsoluteSample,
const std::vector< Eigen::Vector3d > &  pAbsoluteParentSample 
)

Publishes a trajectory element along the given positions.

Parameters
pPublisherFor publishing the visualization message.
pMarkerIdServes as unique id for the marker. Any marker sent with the same id will overwrite the old one.
pSamplesThe list of all samples.

Definition at line 64 of file SampleVisualizer.cpp.

void Visualization::SampleVisualizer::setParentPose ( boost::shared_ptr< ISM::Pose pPose)

Sets the absolute pose of the parent object.

Parameters
pPoseAbsolute pose of the primary scene object.

Definition at line 31 of file SampleVisualizer.cpp.

Member Data Documentation

boost::shared_ptr<ISM::Pose> Visualization::SampleVisualizer::mParentPose
private

Absolute pose of the parent object.

Definition at line 128 of file SampleVisualizer.h.


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


asr_psm_visualizations
Author(s): Gehrung Joachim, Meißner Pascal
autogenerated on Sat Nov 9 2019 03:49:13