Thunderbots Project
Loading...
Searching...
No Matches
ball_state.h
1#pragma once
2
3#include "proto/vision.pb.h"
4#include "software/geom/point.h"
5#include "software/geom/vector.h"
6
11{
12 public:
13 BallState() = delete;
14
24 explicit BallState(const Point& position, const Vector& velocity,
25 double distance_from_ground = 0.0);
26
33 explicit BallState(const TbotsProto::BallState& ball_state_proto);
34
40 Point position() const;
41
47 Vector velocity() const;
48
54 double distanceFromGround() const;
55
64 bool operator==(const BallState& other) const;
65
73 bool operator!=(const BallState& other) const;
74
75 private:
76 Point position_;
77 Vector velocity_;
78 double height_;
79};
Definition ball_state.h:11
bool operator==(const BallState &other) const
Definition ball_state.cpp:33
Vector velocity() const
Definition ball_state.cpp:23
double distanceFromGround() const
Definition ball_state.cpp:28
Point position() const
Definition ball_state.cpp:18
bool operator!=(const BallState &other) const
Definition ball_state.cpp:39
Definition point.h:14
Definition vector.h:12