SCL  1.0
Standard Control Library : Control, dynamics, physics, and simulation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Groups Pages
DatabaseUtils.hpp
1 /* This file is part of scl, a control and simulation library
2 for robots and biomechanical models.
3 
4 scl is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 3 of the License, or (at your option) any later version.
8 
9 Alternatively, you can redistribute it and/or
10 modify it under the terms of the GNU General Public License as
11 published by the Free Software Foundation; either version 2 of
12 the License, or (at your option) any later version.
13 
14 scl is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU Lesser General Public
20 License and a copy of the GNU General Public License along with
21 scl. If not, see <http://www.gnu.org/licenses/>.
22 */
23 /* \file DatabaseUtils.hpp
24  *
25  * Created on: Aug 4, 2010
26  *
27  * Copyright (C) 2010
28  *
29  * Author: Samir Menon <smenon@stanford.edu>
30  */
31 
32 #ifndef DATABASEUTILS_HPP_
33 #define DATABASEUTILS_HPP_
34 
35 #include <scl/DataTypes.hpp>
36 #include <scl/data_structs/SRigidBody.hpp>
37 #include <scl/data_structs/SGcModel.hpp>
38 #include <scl/control/task/data_structs/SControllerMultiTask.hpp>
39 
40 #include <string>
41 
42 namespace scl_util
43 {
44 
46  void printRobotLinkTree(const scl::SRigidBody &link, scl::sInt depth);
47 
51  const std::vector<scl::STaskBase*> &arg_taskvec,
52  const std::vector<scl::SNonControlTaskBase*> &arg_taskvec_nc,
53  scl::SControllerMultiTask& arg_ctrl);
54 
58 
61  scl::sBool isMuscleCompatWithRobot(const std::string& arg_msys,
62  const std::string& arg_robot);
63 }
64 
65 #endif /* DATABASEUTILS_HPP_ */
Definition: SControllerMultiTask.hpp:54
Definition: SRigidBody.hpp:94
bool initDynRobotFromParsedRobot(sutil::CMappedTree< std::string, scl::SRigidBodyDyn > &arg_rbd_tree, const sutil::CMappedTree< std::string, scl::SRigidBody > &arg_rb_tree)
Definition: DatabaseUtils.cpp:226
void printRobotLinkTree(const SRigidBody &link, int depth)
Definition: DatabaseUtils.cpp:53
bool sBool
Definition: DataTypes.hpp:54
sBool isMuscleCompatWithRobot(const std::string &arg_msys, const std::string &arg_robot)
Definition: DatabaseUtils.cpp:283
int initMultiTaskCtrlDsFromParsedTasks(const std::vector< scl::STaskBase * > &arg_taskvec, const std::vector< scl::SNonControlTaskBase * > &arg_taskvec_nc, scl::SControllerMultiTask &ret_ctrl)
Definition: DatabaseUtils.cpp:81
int sInt
Definition: DataTypes.hpp:64