Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bigprint
Universal_Robots_ROS_Driver
Commits
c9b25b5a
Commit
c9b25b5a
authored
Jan 10, 2020
by
Mingu Kwon
Committed by
Felix Exner
Jan 10, 2020
Browse files
fixed duplicated service advertisements (#75)
parent
a926789a
Changes
1
Hide whitespace changes
Inline
Side-by-side
ur_robot_driver/src/ros/dashboard_client_ros.cpp
View file @
c9b25b5a
...
...
@@ -35,7 +35,6 @@ DashboardClientROS::DashboardClientROS(const ros::NodeHandle& nh, const std::str
connect
();
// Service to release the brakes. If the robot is currently powered off, it will get powered on on the fly.
// brake_release_service_ = create_dashboard_trigger_srv("brake_release", "brake release\n", "Brake releasing");
brake_release_service_
=
create_dashboard_trigger_srv
(
"brake_release"
,
"brake release
\n
"
,
"Brake releasing"
);
// If this service is called the operational mode can again be changed from PolyScope, and the user password is
...
...
@@ -130,7 +129,7 @@ DashboardClientROS::DashboardClientROS(const ros::NodeHandle& nh, const std::str
});
// Service to query the current program state
p
opup
_service_
=
p
rogram_state
_service_
=
nh_
.
advertiseService
<
ur_dashboard_msgs
::
GetProgramState
::
Request
,
ur_dashboard_msgs
::
GetProgramState
::
Response
>
(
"program_state"
,
[
&
](
ur_dashboard_msgs
::
GetProgramState
::
Request
&
req
,
ur_dashboard_msgs
::
GetProgramState
::
Response
&
resp
)
{
...
...
@@ -163,7 +162,7 @@ DashboardClientROS::DashboardClientROS(const ros::NodeHandle& nh, const std::str
});
// General purpose service to send arbitrary messages to the dashboard server
r
unning
_service_
=
r
aw_request
_service_
=
nh_
.
advertiseService
<
ur_dashboard_msgs
::
RawRequest
::
Request
,
ur_dashboard_msgs
::
RawRequest
::
Response
>
(
"raw_request"
,
[
&
](
ur_dashboard_msgs
::
RawRequest
::
Request
&
req
,
ur_dashboard_msgs
::
RawRequest
::
Response
&
resp
)
{
...
...
Write
Preview
Markdown
is supported
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