Skip to content

Commit 5a6ee82

Browse files
committed
add ControllerState namespace
to fix build on 20.04
1 parent e90be9a commit 5a6ee82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/roscontrol-sot-controller.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ bool RCSotController::initInterfaces(lhi::RobotHW *robot_hw, ros::NodeHandle &,
172172
lns = "hardware_interface";
173173

174174
// Check if construction finished cleanly
175-
if (state_ != CONSTRUCTED) {
175+
if (state_ != ControllerState::CONSTRUCTED) {
176176
ROS_ERROR("Cannot initialize this controller because it "
177177
"failed to be constructed");
178178
}
@@ -319,7 +319,7 @@ bool RCSotController::initInterfaces(lhi::RobotHW *robot_hw, ros::NodeHandle &,
319319
if (verbosity_level_ > 0)
320320
ROS_INFO_STREAM("Initialization of sot-controller Ok !");
321321
// success
322-
state_ = INITIALIZED;
322+
state_ = ControllerState::INITIALIZED;
323323

324324
return true;
325325
}

0 commit comments

Comments
 (0)