Skip to content

Commit

Permalink
Merge 9d6efbe into 8e06b41
Browse files Browse the repository at this point in the history
  • Loading branch information
HiroIshida committed Dec 12, 2019
2 parents 8e06b41 + 9d6efbe commit f800831
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/services.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#API for calling/creating services. Syntax is practically identical to rospy.
export Service, ServiceProxy, wait_for_service
export Service, ServiceProxy, wait_for_service, shutdown

"""
ServiceProxy{T}(name; kwargs...)
Expand Down Expand Up @@ -90,3 +90,11 @@ function wait_for_service(service::AbstractString; kwargs...)
error("Timeout exceeded waiting for service '$service'")
end
end

"""
shutdown(service_obj)
Shut down the specified service.
"""
function shutdown(s::Service{ST}) where ST <: AbstractService
pycall(s.srv_obj["shutdown"], Nothing)
end

0 comments on commit f800831

Please sign in to comment.