Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix const correctness #521

Merged
merged 2 commits into from
May 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ project(iCub)

#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")

find_package(YARP 2.3.73.3 REQUIRED)
find_package(YARP 2.3.73.4 REQUIRED)
message(STATUS "YARP is version: ${YARP_VERSION}")

if (YARP_HAS_MATH_LIB)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6757,7 +6757,7 @@ bool CanBusMotionControl::setPositionRaw(int j, double ref)
}
}

bool CanBusMotionControl::setPositionsRaw(const int n_joint, const int *joints, double *refs)
bool CanBusMotionControl::setPositionsRaw(const int n_joint, const int *joints, const double *refs)
{
if (refs == 0) return false;
if (joints == 0) return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ class yarp::dev::CanBusMotionControl:public DeviceDriver,

// PositionDirect Interface
virtual bool setPositionRaw(int j, double ref) override;
virtual bool setPositionsRaw(const int n_joint, const int *joints, double *refs) override;
virtual bool setPositionsRaw(const int n_joint, const int *joints, const double *refs) override;
virtual bool setPositionsRaw(const double *refs) override;
virtual bool getRefPositionRaw(const int joint, double *ref) override;
virtual bool getRefPositionsRaw(double *refs) override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3865,7 +3865,7 @@ bool embObjMotionControl::setPositionRaw(int j, double ref)
return res->setRemoteValue(protoId, &setpoint);
}

bool embObjMotionControl::setPositionsRaw(const int n_joint, const int *joints, double *refs)
bool embObjMotionControl::setPositionsRaw(const int n_joint, const int *joints, const double *refs)
{
bool ret = true;
for(int i=0; i<n_joint; i++)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ class yarp::dev::embObjMotionControl: public DeviceDriver,

// PositionDirect Interface
virtual bool setPositionRaw(int j, double ref) override;
virtual bool setPositionsRaw(const int n_joint, const int *joints, double *refs) override;
virtual bool setPositionsRaw(const int n_joint, const int *joints, const double *refs) override;
virtual bool setPositionsRaw(const double *refs) override;
virtual bool getRefPositionRaw(const int joint, double *ref) override;
virtual bool getRefPositionsRaw(double *refs) override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2387,7 +2387,7 @@ bool iCubSimulationControl::setPositionRaw(int axis, double ref)
return false;
}

bool iCubSimulationControl::setPositionsRaw(const int n_joint, const int *joints, double *refs)
bool iCubSimulationControl::setPositionsRaw(const int n_joint, const int *joints, const double *refs)
{
bool ret = true;
for(int i=0; i<n_joint; i++)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ class yarp::dev::iCubSimulationControl :
/////// PositionDirect
virtual bool setPositionDirectModeRaw();
virtual bool setPositionRaw(int j, double ref);
virtual bool setPositionsRaw(const int n_joint, const int *joints, double *refs);
virtual bool setPositionsRaw(const int n_joint, const int *joints, const double *refs);
virtual bool setPositionsRaw(const double *refs);
virtual bool getRefPositionRaw(const int joint, double *ref);
virtual bool getRefPositionsRaw(double *refs);
Expand Down