Collision Checker
shape.cc
Go to the documentation of this file.
2 
3 namespace collision {
4 
6 
7 Shape::Shape(const Shape &copy) : center_(copy.center()) {}
8 
9 // void Shape::print(std::ostringstream &stream) const {}
10 
12  int time_idx, CollisionObjectConstPtr shared_ptr_this) const {
13  return shared_ptr_this;
14 }
15 
16 Eigen::Vector2d Shape::center() const { return center_; }
17 
18 double Shape::center_x() const { return center_(0); }
19 
20 double Shape::center_y() const { return center_(1); }
21 
22 void Shape::set_center(const Eigen::Vector2d &_center) {
23  center_ = _center;
25 }
26 
27 double Shape::radius() const { return radius_; }
28 
29 } // namespace collision
void set_center(const Eigen::Vector2d &_center)
Set geometric center of shape.
Definition: shape.cc:22
double radius_
Definition: shape.h:73
std::shared_ptr< const CollisionObject > CollisionObjectConstPtr
virtual CollisionObjectConstPtr timeSlice(int time_idx, CollisionObjectConstPtr shared_ptr_this) const
Definition: shape.cc:11
virtual ~Shape()
Definition: shape.cc:5
Shape(const Shape &copy)
Definition: shape.cc:7
double radius() const
Get radius.
Definition: shape.cc:27
Base prototype for the shape of an obstacle.
Definition: shape.h:25
double center_x() const
Definition: shape.cc:18
double center_y() const
Definition: shape.cc:20
Eigen::Vector2d center_
Definition: shape.h:72
Eigen::Vector2d center() const
Get geometric center of shape.
Definition: shape.cc:16