Tetrapod Project
stepping_stone.cpp
Go to the documentation of this file.
1
#include "
footstep_planner/stepping_stone.h
"
2
#include<iostream>
3
SteppingStone::SteppingStone
(
Eigen::Vector3d
center,
double
width,
double
height, std::string name)
4
{
5
this->center =
center
;
6
7
this->width =
width
;
8
9
this->height =
height
;
10
11
this->name =
name
;
12
13
Eigen::Vector3d
c2tr;
14
15
c2tr <<
width
/2,
height
/2, 0;
16
17
Eigen::Vector3d
c2br;
18
19
c2br <<
width
/2, -
height
/2, 0;
20
21
top_right
<<
center
+ c2tr;
22
23
bottom_right
<<
center
+ c2br;
24
25
top_left
<<
center
- c2br;
26
27
bottom_left
<<
center
- c2tr;
28
29
A_ineq
<< 1, 0, 0,
30
0, 1, 0,
31
-1, 0, 0,
32
0, -1, 0;
33
34
b_ineq
<< c2tr.segment(0, 2).replicate(2, 1) +
A_ineq
*
center
;
35
36
A_eq
<< 0, 0, 1;
37
38
b_eq
<<
center
(2);
39
}
40
41
SteppingStone::SteppingStone
()
42
{}
43
44
SteppingStone::~SteppingStone
()
45
{}
SteppingStone::bottom_left
Eigen::Vector3d bottom_left
Definition:
stepping_stone.h:54
SteppingStone::A_ineq
Eigen::Matrix< double, 4, 3 > A_ineq
Definition:
stepping_stone.h:56
SteppingStone::name
std::string name
Definition:
stepping_stone.h:46
SteppingStone::b_ineq
Eigen::Matrix< double, 4, 1 > b_ineq
Definition:
stepping_stone.h:58
SteppingStone::SteppingStone
SteppingStone()
Definition:
stepping_stone.cpp:41
SteppingStone::width
double width
Definition:
stepping_stone.h:42
SteppingStone::A_eq
Eigen::Matrix< double, 1, 3 > A_eq
Definition:
stepping_stone.h:60
SteppingStone::bottom_right
Eigen::Vector3d bottom_right
Definition:
stepping_stone.h:50
SteppingStone::top_right
Eigen::Vector3d top_right
Definition:
stepping_stone.h:48
SteppingStone::~SteppingStone
virtual ~SteppingStone()
Definition:
stepping_stone.cpp:44
SteppingStone::center
Eigen::Vector3d center
Definition:
stepping_stone.h:40
SteppingStone::top_left
Eigen::Vector3d top_left
Definition:
stepping_stone.h:52
SteppingStone::height
double height
Definition:
stepping_stone.h:44
SteppingStone::b_eq
Eigen::Matrix< double, 1, 1 > b_eq
Definition:
stepping_stone.h:62
Vector3d
Eigen::Vector3d Vector3d
Definition:
kinematics.h:49
stepping_stone.h
catkin_ws
src
guidance
footstep_planner
src
stepping_stone.cpp
Generated by
1.9.1