iterative closest points
CEV ICP algorithm library
Loading...
Searching...
No Matches
lidar_view.h
Go to the documentation of this file.
1
7#pragma once
8
9#include <SDL.h>
10#include <vector>
11#include <sdlwrapper/gui/view.h>
12#include <sdlwrapper/util/keyboard.h>
13#include "icp/icp.h"
14
15class LidarView final : public View {
16 std::vector<icp::Vector> source;
17 std::vector<icp::Vector> destination;
18 std::unique_ptr<icp::ICP> icp;
19 Keyboard keyboard;
20 bool is_iterating;
21 size_t iterations;
22
23 void step();
24
25public:
28 LidarView(std::vector<icp::Vector> source, std::vector<icp::Vector> destination,
29 std::unique_ptr<icp::ICP> icp);
30
31 void on_event(const SDL_Event& event) override;
32 void draw(SDL_Renderer* renderer, const SDL_Rect* frame, double dtime) override;
33};
void on_event(const SDL_Event &event) override
void draw(SDL_Renderer *renderer, const SDL_Rect *frame, double dtime) override
Definition driver.h:12