#include <SampleVisualizer.h>
|
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) |
|
Visualizer class for point clounds representing samples.
- Author
- Joachim Gehrung
- Version
- See SVN
Definition at line 60 of file SampleVisualizer.h.
Visualization::SampleVisualizer::SampleVisualizer |
( |
| ) |
|
Visualization::SampleVisualizer::~SampleVisualizer |
( |
| ) |
|
visualization_msgs::Marker Visualization::SampleVisualizer::generateArrowMessage |
( |
unsigned int & |
pMarkerId, |
|
|
Eigen::Vector3d |
pFrom, |
|
|
Eigen::Vector3d |
pTo |
|
) |
| |
|
private |
Generates an arrow between two points.
- Parameters
-
pMarkerId | Serves as unique id for the marker. Any marker sent with the same id will overwrite the old one. |
pFrom | The position to start the link from. |
pTo | The 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
-
pMarkerId | Serves as unique id for the marker. Any marker sent with the same id will overwrite the old one. |
pSamples | The 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
-
pPublisher | For publishing the visualization message. |
pMarkerId | Serves as unique id for the marker. Any marker sent with the same id will overwrite the old one. |
pSamples | The 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
-
pPublisher | For publishing the visualization message. |
pMarkerId | Serves as unique id for the marker. Any marker sent with the same id will overwrite the old one. |
pSamples | The list of all samples. |
Definition at line 64 of file SampleVisualizer.cpp.
Sets the absolute pose of the parent object.
- Parameters
-
pPose | Absolute pose of the primary scene object. |
Definition at line 31 of file SampleVisualizer.cpp.
The documentation for this class was generated from the following files: