File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -201,6 +201,7 @@ namespace dynamicgraph {
201
201
defineFreeFloatingJoints (const unsigned int & jointIdFirst,
202
202
const unsigned int & jointIdLast = -1 );
203
203
virtual void defineNbDof ( const unsigned int & nbDof );
204
+ virtual const unsigned int & getNbDof () const { return nbJoints; }
204
205
205
206
/* ! @} */
206
207
public: /* --- CONTROL --- */
Original file line number Diff line number Diff line change @@ -110,6 +110,16 @@ Sot( const std::string& name )
110
110
new dynamicgraph::command::Setter<Sot, unsigned int >
111
111
(*this , &Sot::defineNbDof, docstring));
112
112
113
+ docstring =" \n "
114
+ " getNumberDofs.\n "
115
+ " \n "
116
+ " Output:\n "
117
+ " - a positive integer : number of degrees of freedom of the robot.\n "
118
+ " \n " ;
119
+ addCommand (" getSize" ,
120
+ new dynamicgraph::command::Getter<Sot, const unsigned int &>
121
+ (*this , &Sot::getNbDof, docstring));
122
+
113
123
docstring =" \n "
114
124
" push a task into the stack.\n "
115
125
" \n "
You can’t perform that action at this time.
0 commit comments