Skip to content

Commit ce4c3df

Browse files
Use dynamicgraph::size_type instead of int.
1 parent bd87644 commit ce4c3df

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/controller.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ SoTRobotArmController::~SoTRobotArmController()
110110
{
111111
}
112112

113-
void SoTRobotArmController::setControlSize(const int& size)
113+
void SoTRobotArmController::setControlSize(const size_type& size)
114114
{
115115
device_->setControlSize(size);
116116
}

src/controller.hh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ using dynamicgraph::sot::AbstractSotExternalInterface;
3838
using dynamicgraph::sot::Device;
3939
using dynamicgraph::sot::ControlValues;
4040
using dynamicgraph::sot::SensorValues;
41-
41+
using dynamicgraph::size_type;
4242

4343
class SoTRobotArmController: public AbstractSotExternalInterface
4444
{
@@ -63,7 +63,7 @@ class SoTRobotArmController: public AbstractSotExternalInterface
6363
void setSecondOrderIntegration(void);
6464

6565
// Set the number of joints that are controlled
66-
virtual void setControlSize(const int& size);
66+
virtual void setControlSize(const size_type& size);
6767

6868
// Run some python commands that cannot be run at construction
6969
virtual void initializePython();

0 commit comments

Comments
 (0)