From 5adb74f33d77f5f27df23d0e3b4900df2286f134 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20=C5=81ukawski?= Date: Wed, 17 Jan 2024 18:18:06 +0100 Subject: [PATCH] Set default joint type to revolute (for yarpmotorgui) https://github.com/robotology/yarp/blob/c59779fa086a46c09d32cbceb1c0ed240bd19bbe/src/yarpmotorgui/jointitem.cpp#L655 --- libraries/YarpPlugins/FakeJoint/FakeJoint.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/YarpPlugins/FakeJoint/FakeJoint.hpp b/libraries/YarpPlugins/FakeJoint/FakeJoint.hpp index 14b11e7e4..85185dc6e 100644 --- a/libraries/YarpPlugins/FakeJoint/FakeJoint.hpp +++ b/libraries/YarpPlugins/FakeJoint/FakeJoint.hpp @@ -10,6 +10,8 @@ #include "ICanBusSharer.hpp" +constexpr auto JOINT_TYPE = yarp::dev::VOCAB_JOINTTYPE_REVOLUTE; // yarpmotorgui can't handle VOCAB_JOINTTYPE_UNKNOWN + namespace roboticslab { @@ -105,7 +107,7 @@ class FakeJoint : public yarp::dev::DeviceDriver, bool getAxisNameRaw(int axis, std::string & name) override { name = jointName; return true; } bool getJointTypeRaw(int axis, yarp::dev::JointTypeEnum & type) override - { type = yarp::dev::JointTypeEnum::VOCAB_JOINTTYPE_UNKNOWN; return true; } + { type = JOINT_TYPE; return true; } // --------- IControlCalibrationRaw declarations ---------