Skip to content

Commit 866449e

Browse files
committed
Add warnings to new commands
1 parent e1dd6f0 commit 866449e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/control/script_command_interface.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ bool ScriptCommandInterface::endToolContact()
228228

229229
bool ScriptCommandInterface::setFrictionCompensation(const bool friction_compensation_enabled)
230230
{
231+
robotVersionSupportsCommandOrWarn(urcl::VersionInformation::fromString("5.23.0"),
232+
urcl::VersionInformation::fromString("10.10.0"), __func__);
231233
const int message_length = 2;
232234
uint8_t buffer[sizeof(int32_t) * MAX_MESSAGE_LENGTH];
233235
uint8_t* b_pos = buffer;
@@ -251,6 +253,8 @@ bool ScriptCommandInterface::setFrictionCompensation(const bool friction_compens
251253

252254
bool ScriptCommandInterface::setPDControllerGains(const urcl::vector6d_t* kp, const urcl::vector6d_t* kd)
253255
{
256+
robotVersionSupportsCommandOrWarn(urcl::VersionInformation::fromString("5.23.0"),
257+
urcl::VersionInformation::fromString("10.10.0"), __func__);
254258
const int message_length = 13;
255259
uint8_t buffer[sizeof(int32_t) * MAX_MESSAGE_LENGTH];
256260
uint8_t* b_pos = buffer;
@@ -283,6 +287,8 @@ bool ScriptCommandInterface::setPDControllerGains(const urcl::vector6d_t* kp, co
283287

284288
bool ScriptCommandInterface::setMaxJointTorques(const urcl::vector6d_t* max_joint_torques)
285289
{
290+
robotVersionSupportsCommandOrWarn(urcl::VersionInformation::fromString("5.23.0"),
291+
urcl::VersionInformation::fromString("10.10.0"), __func__);
286292
const int message_length = 7;
287293
uint8_t buffer[sizeof(int32_t) * MAX_MESSAGE_LENGTH];
288294
uint8_t* b_pos = buffer;

0 commit comments

Comments
 (0)