Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
roscontrol_sot
Commits
5a6ee827
Commit
5a6ee827
authored
Nov 26, 2021
by
Guilhem Saurel
Browse files
add ControllerState namespace
to fix build on 20.04
parent
e90be9a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/roscontrol-sot-controller.cpp
View file @
5a6ee827
...
@@ -172,7 +172,7 @@ bool RCSotController::initInterfaces(lhi::RobotHW *robot_hw, ros::NodeHandle &,
...
@@ -172,7 +172,7 @@ bool RCSotController::initInterfaces(lhi::RobotHW *robot_hw, ros::NodeHandle &,
lns
=
"hardware_interface"
;
lns
=
"hardware_interface"
;
// Check if construction finished cleanly
// Check if construction finished cleanly
if
(
state_
!=
CONSTRUCTED
)
{
if
(
state_
!=
ControllerState
::
CONSTRUCTED
)
{
ROS_ERROR
(
"Cannot initialize this controller because it "
ROS_ERROR
(
"Cannot initialize this controller because it "
"failed to be constructed"
);
"failed to be constructed"
);
}
}
...
@@ -319,7 +319,7 @@ bool RCSotController::initInterfaces(lhi::RobotHW *robot_hw, ros::NodeHandle &,
...
@@ -319,7 +319,7 @@ bool RCSotController::initInterfaces(lhi::RobotHW *robot_hw, ros::NodeHandle &,
if
(
verbosity_level_
>
0
)
if
(
verbosity_level_
>
0
)
ROS_INFO_STREAM
(
"Initialization of sot-controller Ok !"
);
ROS_INFO_STREAM
(
"Initialization of sot-controller Ok !"
);
// success
// success
state_
=
INITIALIZED
;
state_
=
ControllerState
::
INITIALIZED
;
return
true
;
return
true
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment