@@ -96,6 +96,10 @@ int wam_main(int argc, char** argv, ProductManager& pm, systems::Wam<DOF>& wam)
9696 mvprintw (line++,0 , " Tool Position (m): " );
9797 mvprintw (line++,0 , " Tool Orientation (quat): " );
9898 line++;
99+ mvprintw (line++,0 , " " );
100+ mvprintw (line++,0 , " Tool Orientation (mat): " );
101+ mvprintw (line++,0 , " " );
102+ line++;
99103
100104 if (fts != NULL ) {
101105 mvprintw (line++,0 , " F/T Sensor" );
@@ -137,6 +141,7 @@ int wam_main(int argc, char** argv, ProductManager& pm, systems::Wam<DOF>& wam)
137141 jt_type jt;
138142 cp_type cp;
139143 Eigen::Quaterniond to;
144+ Eigen::Matrix3d R;
140145 math::Matrix<6 ,DOF> J;
141146
142147 cf_type cf;
@@ -182,6 +187,11 @@ int wam_main(int argc, char** argv, ProductManager& pm, systems::Wam<DOF>& wam)
182187 to = wam.getToolOrientation (); // We work only with unit quaternions. No saturation necessary.
183188 mvprintw (line++,wamX, " %+7.4f %+7.4fi %+7.4fj %+7.4fk" , to.w (), to.x (), to.y (), to.z ());
184189
190+ R = to.toRotationMatrix (); // convert to a 3x3 rotation matrix
191+ line++;
192+ mvprintw (line++,wamX, " [%+7.4f %+7.4f %+7.4f]" , R (0 ,0 ), R (0 ,1 ), R (0 ,2 ));
193+ mvprintw (line++,wamX, " [%+7.4f %+7.4f %+7.4f]" , R (1 ,0 ), R (1 ,1 ), R (1 ,2 ));
194+ mvprintw (line++,wamX, " [%+7.4f %+7.4f %+7.4f]" , R (2 ,0 ), R (2 ,1 ), R (2 ,2 ));
185195
186196 // FTS
187197 if (fts != NULL ) {
0 commit comments