Skip to content

Commit

Permalink
DynamixelAX12 device fix
Browse files Browse the repository at this point in the history
Bindings fix
Fixed destructor of DeviceDriver class
  • Loading branch information
randaz81 committed Dec 11, 2023
1 parent 60a779c commit bc2d424
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion bindings/yarp.i
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,6 @@ MAKE_COMMS(Bottle)
%include <yarp/sig/Sound.h>
%include <yarp/sig/Matrix.h>
%include <yarp/sig/Vector.h>
%include <yarp/os/IOpenClose.h>
%include <yarp/dev/DeviceDriver.h>
%include <yarp/dev/PolyDriver.h>
%include <yarp/dev/Drivers.h>
Expand Down
2 changes: 1 addition & 1 deletion src/devices/DynamixelAX12Ftdi/DynamixelAX12FtdiDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class DynamixelAX12FtdiDriver :
@param config Config file containing string pairs for parameters
@return true on success
*/
bool configure(yarp::os::Searchable& config) override;
bool configure(yarp::os::Searchable& config);

/** Send instruction to device
Send an instruction to a device of given ID. The instruction has to be a byte arry containing
Expand Down
2 changes: 1 addition & 1 deletion src/libYARP_dev/src/yarp/dev/DeviceDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class YARP_dev_API yarp::dev::DeviceDriver
DeviceDriver& operator=(const DeviceDriver& other) = delete;
DeviceDriver& operator=(DeviceDriver&& other) noexcept = delete;

~DeviceDriver();
virtual ~DeviceDriver();

/**
* Open the DeviceDriver.
Expand Down
2 changes: 1 addition & 1 deletion src/libYARP_dev/src/yarp/dev/Drivers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class StubDriver : public DeviceDriver {
init();
}

~StubDriver() = default;
virtual ~StubDriver() = default;

void init() {
if (plugin.open(settings)) {
Expand Down

0 comments on commit bc2d424

Please sign in to comment.