Main Page
Namespaces
Classes
Files
File List
src
base_module_state.cpp
Go to the documentation of this file.
1
/*******************************************************************************
2
* Copyright 2017 ROBOTIS CO., LTD.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*******************************************************************************/
16
17
/* Author: SCH */
18
19
#include "
op3_base_module/base_module_state.h
"
20
21
namespace
robotis_op
22
{
23
24
BaseModuleState::BaseModuleState
()
25
{
26
is_moving_
=
false
;
27
28
cnt_
= 0;
29
30
mov_time_
= 1.0;
31
smp_time_
= 0.008;
32
all_time_steps_
= int(
mov_time_
/
smp_time_
) + 1;
33
34
calc_joint_tra_
= Eigen::MatrixXd::Zero(
all_time_steps_
,
MAX_JOINT_ID
+ 1);
35
36
joint_ini_pose_
= Eigen::MatrixXd::Zero(
MAX_JOINT_ID
+ 1, 1);
37
joint_pose_
= Eigen::MatrixXd::Zero(
MAX_JOINT_ID
+ 1, 1);
38
39
via_num_
= 1;
40
41
joint_via_pose_
= Eigen::MatrixXd::Zero(
via_num_
,
MAX_JOINT_ID
+ 1);
42
joint_via_dpose_
= Eigen::MatrixXd::Zero(
via_num_
,
MAX_JOINT_ID
+ 1);
43
joint_via_ddpose_
= Eigen::MatrixXd::Zero(
via_num_
,
MAX_JOINT_ID
+ 1);
44
45
via_time_
= Eigen::MatrixXd::Zero(
via_num_
, 1);
46
}
47
48
BaseModuleState::~BaseModuleState
()
49
{
50
}
51
52
}
robotis_op::BaseModuleState::joint_via_dpose_
Eigen::MatrixXd joint_via_dpose_
Definition:
base_module_state.h:53
robotis_op::BaseModuleState::calc_joint_tra_
Eigen::MatrixXd calc_joint_tra_
Definition:
base_module_state.h:45
robotis_op::BaseModuleState::smp_time_
double smp_time_
Definition:
base_module_state.h:41
robotis_op::BaseModuleState::joint_ini_pose_
Eigen::MatrixXd joint_ini_pose_
Definition:
base_module_state.h:47
robotis_op::BaseModuleState::cnt_
int cnt_
Definition:
base_module_state.h:38
robotis_op::BaseModuleState::via_num_
int via_num_
Definition:
base_module_state.h:50
robotis_op::BaseModuleState::~BaseModuleState
~BaseModuleState()
Definition:
base_module_state.cpp:48
robotis_op::BaseModuleState::via_time_
Eigen::MatrixXd via_time_
Definition:
base_module_state.h:56
robotis_op::BaseModuleState::is_moving_
bool is_moving_
Definition:
base_module_state.h:36
robotis_op
robotis_op::BaseModuleState::BaseModuleState
BaseModuleState()
Definition:
base_module_state.cpp:24
robotis_op::BaseModuleState::all_time_steps_
int all_time_steps_
Definition:
base_module_state.h:43
robotis_op::BaseModuleState::mov_time_
double mov_time_
Definition:
base_module_state.h:40
robotis_op::BaseModuleState::joint_via_ddpose_
Eigen::MatrixXd joint_via_ddpose_
Definition:
base_module_state.h:54
base_module_state.h
robotis_op::BaseModuleState::joint_via_pose_
Eigen::MatrixXd joint_via_pose_
Definition:
base_module_state.h:52
robotis_op::BaseModuleState::joint_pose_
Eigen::MatrixXd joint_pose_
Definition:
base_module_state.h:48
MAX_JOINT_ID
#define MAX_JOINT_ID
op3_base_module
Author(s): Kayman
, SCH
autogenerated on Mon Jun 10 2019 14:41:14