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 
20 
21 namespace robotis_op
22 {
23 
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 
49 {
50 }
51 
52 }
#define MAX_JOINT_ID


op3_base_module
Author(s): Kayman , SCH
autogenerated on Mon Jun 10 2019 14:41:14