File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,8 @@ namespace dynamicgraph {
81
81
bool withForceSignals[4 ];
82
82
PeriodicCall periodicCallBefore_;
83
83
PeriodicCall periodicCallAfter_;
84
-
84
+ double timestep_;
85
+
85
86
// / \name Robot bounds used for sanity checks
86
87
// / \{
87
88
Vector upperPosition_;
Original file line number Diff line number Diff line change @@ -210,6 +210,9 @@ Device( const std::string& n )
210
210
command::docCommandVoid2 (" Set robot torque bounds" , " vector: lower bounds" , " vector: upper bounds" )
211
211
));
212
212
213
+ addCommand (" getTimeStep" ,
214
+ makeDirectGetter (*this , &this ->timestep_ ,
215
+ docDirectGetter (" Time step" , " double" )));
213
216
// Handle commands and signals called in a synchronous way.
214
217
periodicCallBefore_.addSpecificCommands (*this , commandMap, " before." );
215
218
periodicCallAfter_.addSpecificCommands (*this , commandMap, " after." );
You can’t perform that action at this time.
0 commit comments