47 #ifndef _MIRA_POSETOOL_H_ 48 #define _MIRA_POSETOOL_H_ 51 #include <OGRE/OgreRenderWindow.h> 52 #include <OGRE/OgreSceneManager.h> 100 PoseTool(
float minPositionVariance = 0.1f,
101 float minOrientationVariance = 0.25f);
112 float minPositionVariance = 0.1f,
113 float minOrientationVariance = 0.25f);
127 float minOrientationVariance = 0.25f,
128 float minPositionVariance = 0.1f);
131 template <
typename Reflector>
136 if ((mInputMode == PoseInput) || (mInputMode == PositionInput)) {
137 r.property(
"MinPositionVariance", mMinPositionVariance,
138 "The smallest allowed position variance.", 0.1f,
141 if ((mInputMode == PoseInput) || (mInputMode == OrientationInput)) {
142 r.property(
"MinOrientationVariance", mMinOrientationVariance,
143 "The smallest allowed orientation variance.", 0.25f,
151 virtual void onMousePressed(QMouseEvent* e);
153 virtual void onMouseReleased(QMouseEvent* e);
155 virtual void onMouseMoved(QMouseEvent* e);
196 float xRange,
float yRange) {}
213 std::pair<std::string, Ogre::Vector3> getIntersection(
float x,
float y,
214 const std::string& mask=
"");
216 void showCovariances(
const PoseCov2::CovMatrixType& cov);
220 boost::shared_ptr<AxesObject> mAxesObject;
221 boost::shared_ptr<AxesCovObject> mAxesCovObject;
222 boost::shared_ptr<CovObject> mCovObject;
223 SelectionMode mSelectionMode;
224 std::string mSelectedObject;
225 Ogre::Vector3 mLastPos;
226 QPoint mLastGlobalPos;
229 const InputMode mInputMode;
230 float mMinPositionVariance;
231 float mMinOrientationVariance;
The interface of a Visualization3DSite.
Definition: Visualization3D.h:84
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
#define MIRA_REFLECT_BASE(reflector, BaseClass)
Macro that can be used to reflect the base class easily.
Definition: ReflectorInterface.h:912
Visualization of covariances.
#define MIRA_GUI_VISUALIZATION_EXPORT
Definition: GuiVisualizationExports.h:61
PropertyHint minimum(const T &min)
Sets the attribute "minimum" to the specified value.
Definition: PropertyHint.h:243
Visualization of covariance for axes.
Typedefs for different Pose datatypes that are internally RigidTransforms.
Unsigned angle that is represented using radians.
Definition: Angle.h:717