Skip to content

Commit

Permalink
Set default joint type to revolute (for yarpmotorgui)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterBowman committed Jan 17, 2024
1 parent e05e64a commit 5adb74f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/YarpPlugins/FakeJoint/FakeJoint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{

Expand Down Expand Up @@ -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 ---------

Expand Down

0 comments on commit 5adb74f

Please sign in to comment.