Skip to content

Commit 4bad18a

Browse files
jmirabelolivier-stasse
authored andcommitted
Add commands to expose Device bounds
1 parent 6be935e commit 4bad18a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/tools/device.cpp

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,29 @@ Device( const std::string& n )
189189
new command::Setter<Device,string>
190190
(*this, &Device::setControlInputType, docstring));
191191

192+
docstring =
193+
"\n"
194+
" Enable/Disable sanity checks\n"
195+
"\n";
196+
addCommand("setSanityCheck",
197+
new command::Setter<Device, bool>
198+
(*this, &Device::setSanityCheck, docstring));
199+
200+
addCommand("setPositionBounds",
201+
command::makeCommandVoid2(*this,&Device::setPositionBounds,
202+
command::docCommandVoid2 ("Set robot position bounds", "vector: lower bounds", "vector: upper bounds")
203+
));
204+
205+
addCommand("setVelocityBounds",
206+
command::makeCommandVoid2(*this,&Device::setVelocityBounds,
207+
command::docCommandVoid2 ("Set robot velocity bounds", "vector: lower bounds", "vector: upper bounds")
208+
));
209+
210+
addCommand("setTorqueBounds",
211+
command::makeCommandVoid2(*this,&Device::setTorqueBounds,
212+
command::docCommandVoid2 ("Set robot torque bounds", "vector: lower bounds", "vector: upper bounds")
213+
));
214+
192215
// Handle commands and signals called in a synchronous way.
193216
periodicCallBefore_.addSpecificCommands(*this, commandMap, "before.");
194217
periodicCallAfter_.addSpecificCommands(*this, commandMap, "after.");

0 commit comments

Comments
 (0)