GaitGeneration by Graph Search
読み取り中…
検索中…
一致する文字列を見つけられません
DesignLab
simulation_end_checker_by_goal_tape.cpp
[詳解]
1
3
4
// Copyright(c) 2023-2025 Design Engineering Laboratory, Saitama University
5
// Released under the MIT license
6
// https://opensource.org/licenses/mit-license.php
7
8
#include "
simulation_end_checker_by_goal_tape.h
"
9
10
11
namespace
designlab
12
{
13
14
SimulationEndCheckerByGoalTape::SimulationEndCheckerByGoalTape
(
const
float
goal_tape_x) :
15
kGoalTape(goal_tape_x)
16
{
17
}
18
19
bool
SimulationEndCheckerByGoalTape::IsEnd
(
const
RobotStateNode
& node)
const
20
{
21
if
(node.
center_of_mass_global_coord
.
x
> kGoalTape)
22
{
23
return
true
;
24
}
25
else
26
{
27
return
false
;
28
}
29
}
30
31
}
// namespace designlab
designlab::SimulationEndCheckerByGoalTape::IsEnd
bool IsEnd(const RobotStateNode &node) const override
シミュレーションの終了を判定する.
Definition
simulation_end_checker_by_goal_tape.cpp:19
designlab::SimulationEndCheckerByGoalTape::SimulationEndCheckerByGoalTape
SimulationEndCheckerByGoalTape(float goal_tape_x)
Definition
simulation_end_checker_by_goal_tape.cpp:14
designlab
Definition
abstract_dxlib_gui.cpp:18
simulation_end_checker_by_goal_tape.h
designlab::RobotStateNode
グラフ構造のためのノード(頂点).旧名 LNODE
Definition
robot_state_node.h:47
designlab::RobotStateNode::center_of_mass_global_coord
Vector3 center_of_mass_global_coord
[4 * 3 = 12byte] グローバル座標系における重心の位置.旧名 GCOM
Definition
robot_state_node.h:202
designlab::Vector3::x
float x
ロボットの正面方向に正.
Definition
math_vector3.h:243
構築:
1.9.8