gtsam_points
Loading...
Searching...
No Matches
trajectory.hpp
Go to the documentation of this file.
1#ifndef GLK_TRAJECTORY_HPP
2#define GLK_TRAJECTORY_HPP
3
4#include <functional>
5
6#include <Eigen/Core>
7#include <Eigen/Geometry>
8#include <glk/drawable.hpp>
9
10namespace glk {
11
12class ThinLines;
13
14class Trajectory : public glk::Drawable {
15public:
16 Trajectory(const std::vector<Eigen::Isometry3f>& trajectory);
17 Trajectory(int num_frames, const std::function<Eigen::Isometry3f(int)>& adapter);
18
19 virtual ~Trajectory();
20
21 virtual void draw(glk::GLSLShader& shader) const override;
22
23private:
24 std::unique_ptr<glk::ThinLines> lines;
25 std::vector<Eigen::Isometry3f> trajectory;
26};
27} // namespace glk
28
29#endif
Definition drawable.hpp:12
Definition glsl_shader.hpp:20
Definition trajectory.hpp:14
Trajectory(int num_frames, const std::function< Eigen::Isometry3f(int)> &adapter)
virtual void draw(glk::GLSLShader &shader) const override
Trajectory(const std::vector< Eigen::Isometry3f > &trajectory)
virtual ~Trajectory()
Definition async_buffer_copy.hpp:6
std::enable_if_t< needs_aligned_allocator< T >::value, std::shared_ptr< T > > make_shared(Args &&... args)
Definition make_shared.hpp:20