jspace/jspace/tao_util.cpp File Reference

Author:
Roland Philippsen (roland DOT philippsen AT gmx DOT net)
More...

#include "tao_util.hpp"
#include "strutil.hpp"
#include <tao/dynamics/taoNode.h>
#include <tao/dynamics/taoDNode.h>
#include <tao/dynamics/taoJoint.h>
#include <limits>

Include dependency graph for tao_util.cpp:

Go to the source code of this file.

Namespaces

namespace  jspace

Typedefs

typedef std::map< int, int > jspace::id_counter_t

Functions

void jspace::mapNodesToIDs (idToNodeMap_t &idToNodeMap, taoDNode *node) throw (std::runtime_error)
 Create a map between tao nodes and IDs.
int jspace::countNumberOfLinks (taoDNode *root)
 Count the total number of links connected to the given node, following all children in to the leaf nodes.
int jspace::countNumberOfJoints (taoDNode *node)
 Count the total number of joints attached to the given node and all its descendants.
int jspace::countDegreesOfFreedom (taoDNode *node)
 Count the total number of degrees of freedom of all the joints attached to the given node and all its descendants.
double jspace::computeTotalMass (taoDNode *node)
 Sum up the mass of the given node plus all its descendants.
static void jspace::_recurse_create_bare_tao_tree_info (tao_tree_info_s *tree_info, taoDNode *node)
tao_tree_info_s * jspace::create_bare_tao_tree_info (taoNodeRoot *root)
 Create a minimal tao_tree_info_s from a TAO tree.
static void jspace::tao_collect_ids (taoDNode *node, id_counter_t &id_counter)
int jspace::tao_consistency_check (taoNodeRoot *root,std::ostream *msg)
 Run a consistency check on a TAO tree.


Detailed Description

Author:
Roland Philippsen (roland DOT philippsen AT gmx DOT net)

Definition in file tao_util.cpp.


Generated on Fri Aug 26 01:31:35 2011 for Stanford Whole-Body Control Framework by  doxygen 1.5.4