File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
cob_twist_controller/src/debug Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,20 @@ class DebugEvaluateJointStates
79
79
return -4 ;
80
80
}
81
81
82
+ // debug chain
83
+ ROS_WARN (" ~~~~~~~~~~~~~ DEBUG CHAIN ~~~~~~~~~~~~~" );
84
+ ROS_WARN_STREAM (" NrOfJoints: " <<chain_.getNrOfJoints ());
85
+ ROS_WARN_STREAM (" NrOfSegments: " <<chain_.getNrOfSegments ());
86
+ for (unsigned int i = 0 ; i < chain_.getNrOfSegments (); i++)
87
+ {
88
+ KDL::Segment segment = chain_.getSegment (i);
89
+ ROS_WARN_STREAM (" SegmentName: " <<segment.getName ());
90
+ KDL::Joint joint = segment.getJoint ();
91
+ ROS_WARN_STREAM (" JointName: " <<joint.getName ());
92
+ ROS_WARN_STREAM (" JointType: " <<joint.getTypeName ());
93
+ }
94
+ ROS_WARN (" ~~~~~~~~~~~~~ DEBUG CHAIN ~~~~~~~~~~~~~" );
95
+
82
96
p_fksolver_vel_ = new KDL::ChainFkSolverVel_recursive (chain_);
83
97
p_jnt2jac_ = new KDL::ChainJntToJacSolver (chain_);
84
98
You can’t perform that action at this time.
0 commit comments