CameraFollowMode.h
Go to the documentation of this file.
1 /*
2  * This file is part of OctoMap - An Efficient Probabilistic 3D Mapping
3  * Framework Based on Octrees
4  * http://octomap.github.io
5  *
6  * Copyright (c) 2009-2014, K.M. Wurm and A. Hornung, University of Freiburg
7  * All rights reserved. License for the viewer octovis: GNU GPL v2
8  * http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
9  *
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful, but
17  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
18  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  * for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program. If not, see http://www.gnu.org/licenses/.
23  */
24 
25 #ifndef CAMERAFOLLOWMODE_H_
26 #define CAMERAFOLLOWMODE_H_
27 
28 #include "SceneObject.h"
29 #include <QObject>
30 
31 class CameraFollowMode : public QObject {
32  Q_OBJECT
33 
34 public:
35  CameraFollowMode(octomap::ScanGraph *graph = NULL);
36  virtual ~CameraFollowMode();
37  void setScanGraph(octomap::ScanGraph *graph);
38 
39 public slots:
40  void jumpToFrame(unsigned int frame);
41  void cameraPathStopped(int id);
42  void cameraPathFrameChanged(int id, int current_camera_frame);
43  void play();
44  void pause();
45  void clearCameraPath();
46  void saveToCameraPath();
47  void addToCameraPath();
48  void removeFromCameraPath();
49  void followCameraPath();
50  void followRobotPath();
51 
52 signals:
53  void changeCamPose(const octomath::Pose6D& pose);
54  void interpolateCamPose(const octomath::Pose6D& old_pose, const octomath::Pose6D& new_pose, double u);
55  void stopped();
56  void frameChanged(unsigned int frame);
57  void deleteCameraPath(int id);
58  void removeFromCameraPath(int id, int frame);
59  void updateCameraPath(int id, int frame);
60  void appendToCameraPath(int id, const octomath::Pose6D& pose);
61  void appendCurrentToCameraPath(int id);
62  void addCurrentToCameraPath(int id, int frame);
63  void playCameraPath(int id, int start_frame);
64  void stopCameraPath(int id);
65  void jumpToCamFrame(int id, int frame);
66  void changeNumberOfFrames(unsigned count);
67  void scanGraphAvailable(bool available);
68 
69 
70 protected:
72  unsigned int m_current_scan;
73  unsigned int m_current_cam_frame;
74  unsigned int m_number_cam_frames;
75  unsigned int m_start_frame;
77 };
78 
79 #endif /* CAMERAFOLLOWMODE_H_ */
CameraFollowMode::cameraPathStopped
void cameraPathStopped(int id)
Definition: CameraFollowMode.cpp:84
CameraFollowMode::removeFromCameraPath
void removeFromCameraPath()
Definition: CameraFollowMode.cpp:121
CameraFollowMode::playCameraPath
void playCameraPath(int id, int start_frame)
CameraFollowMode::followRobotPath
void followRobotPath()
Definition: CameraFollowMode.cpp:135
CameraFollowMode::changeCamPose
void changeCamPose(const octomath::Pose6D &pose)
CameraFollowMode::addCurrentToCameraPath
void addCurrentToCameraPath(int id, int frame)
CameraFollowMode
Definition: CameraFollowMode.h:31
CameraFollowMode::stopCameraPath
void stopCameraPath(int id)
CameraFollowMode::m_scan_graph
octomap::ScanGraph * m_scan_graph
Definition: CameraFollowMode.h:71
CameraFollowMode::updateCameraPath
void updateCameraPath(int id, int frame)
CameraFollowMode::m_current_cam_frame
unsigned int m_current_cam_frame
Definition: CameraFollowMode.h:73
CameraFollowMode::jumpToCamFrame
void jumpToCamFrame(int id, int frame)
CameraFollowMode::cameraPathFrameChanged
void cameraPathFrameChanged(int id, int current_camera_frame)
Definition: CameraFollowMode.cpp:90
CameraFollowMode::setScanGraph
void setScanGraph(octomap::ScanGraph *graph)
Definition: CameraFollowMode.cpp:79
CameraFollowMode::m_current_scan
unsigned int m_current_scan
Definition: CameraFollowMode.h:72
CameraFollowMode::stopped
void stopped()
octomap::ScanGraph
CameraFollowMode::pause
void pause()
Definition: CameraFollowMode.cpp:73
CameraFollowMode::m_start_frame
unsigned int m_start_frame
Definition: CameraFollowMode.h:75
CameraFollowMode::appendCurrentToCameraPath
void appendCurrentToCameraPath(int id)
CameraFollowMode::play
void play()
Definition: CameraFollowMode.cpp:53
CameraFollowMode::addToCameraPath
void addToCameraPath()
Definition: CameraFollowMode.cpp:112
CameraFollowMode::frameChanged
void frameChanged(unsigned int frame)
SceneObject.h
CameraFollowMode::changeNumberOfFrames
void changeNumberOfFrames(unsigned count)
CameraFollowMode::scanGraphAvailable
void scanGraphAvailable(bool available)
CameraFollowMode::clearCameraPath
void clearCameraPath()
Definition: CameraFollowMode.cpp:100
CameraFollowMode::jumpToFrame
void jumpToFrame(unsigned int frame)
Definition: CameraFollowMode.cpp:40
CameraFollowMode::interpolateCamPose
void interpolateCamPose(const octomath::Pose6D &old_pose, const octomath::Pose6D &new_pose, double u)
CameraFollowMode::~CameraFollowMode
virtual ~CameraFollowMode()
Definition: CameraFollowMode.cpp:36
CameraFollowMode::saveToCameraPath
void saveToCameraPath()
Definition: CameraFollowMode.cpp:108
octomath::Pose6D
CameraFollowMode::appendToCameraPath
void appendToCameraPath(int id, const octomath::Pose6D &pose)
CameraFollowMode::deleteCameraPath
void deleteCameraPath(int id)
CameraFollowMode::m_followRobotTrajectory
bool m_followRobotTrajectory
Definition: CameraFollowMode.h:76
CameraFollowMode::CameraFollowMode
CameraFollowMode(octomap::ScanGraph *graph=NULL)
Definition: CameraFollowMode.cpp:31
CameraFollowMode::m_number_cam_frames
unsigned int m_number_cam_frames
Definition: CameraFollowMode.h:74
CameraFollowMode::followCameraPath
void followCameraPath()
Definition: CameraFollowMode.cpp:129


octovis
Author(s): Kai M. Wurm , Armin Hornung
autogenerated on Thu Apr 3 2025 02:40:44