@@ -55,14 +55,14 @@ OpPointModifier( const std::string& name )
55
55
sotDEBUGIN (15 );
56
56
57
57
signalRegistration ( jacobianSIN<<positionSIN<<jacobianSOUT<<positionSOUT );
58
-
59
58
{
59
+
60
60
using namespace dynamicgraph ::command;
61
61
addCommand (" getTransformation" ,
62
- makeDirectGetter (*this ,&(dynamicgraph::Matrix&)transformation ,
62
+ makeDirectGetter (*this ,&transformation. matrix () ,
63
63
docDirectGetter (" transformation" ," matrix 4x4 homo" )));
64
64
addCommand (" setTransformation" ,
65
- makeDirectSetter (*this , &(dynamicgraph::Matrix&)transformation ,
65
+ makeDirectSetter (*this , &transformation. matrix () ,
66
66
docDirectSetter (" dimension" ," matrix 4x4 homo" )));
67
67
addCommand (" getEndEffector" ,
68
68
makeDirectGetter (*this ,&isEndEffector,
@@ -135,11 +135,11 @@ OpPointModifier::positionSOUT_function( MatrixHomogeneous& res,const int& iter )
135
135
}
136
136
137
137
void
138
- OpPointModifier::setTransformation ( const MatrixHomogeneous & tr )
139
- { transformation = tr; }
140
- const MatrixHomogeneous &
138
+ OpPointModifier::setTransformation ( const Eigen::Matrix4d & tr )
139
+ { transformation. matrix () = tr; }
140
+ const Eigen::Matrix4d &
141
141
OpPointModifier::getTransformation ( void )
142
- { return transformation; }
142
+ { return transformation. matrix () ; }
143
143
144
144
145
145
/* The following function needs an access to a specific signal via
@@ -152,8 +152,8 @@ OpPointModifier::getTransformation( void )
152
152
void
153
153
OpPointModifier::setTransformationBySignalName ( std::istringstream& cmdArgs )
154
154
{
155
- Signal< MatrixHomogeneous ,int > &sig
156
- = dynamic_cast < Signal< MatrixHomogeneous ,int >& >
155
+ Signal< Eigen::Matrix4d ,int > &sig
156
+ = dynamic_cast < Signal< Eigen::Matrix4d ,int >& >
157
157
(PoolStorage::getInstance ()->getSignal ( cmdArgs ));
158
158
setTransformation (sig.accessCopy ());
159
159
}
@@ -166,7 +166,7 @@ commandLine( const std::string& cmdLine,
166
166
{
167
167
if ( cmdLine == " transfo" )
168
168
{
169
- MatrixHomogeneous tr;
169
+ Eigen::Matrix4d tr;
170
170
cmdArgs >> tr;
171
171
setTransformation (tr);
172
172
}
0 commit comments