forked from tiiuae/rclgo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Trigger.gen.go
52 lines (38 loc) · 1.36 KB
/
Trigger.gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
This file is part of rclgo
Copyright © 2021 Technology Innovation Institute, United Arab Emirates
Licensed under the Apache License, Version 2.0 (the "License");
http://www.apache.org/licenses/LICENSE-2.0
*/
/*
THIS FILE IS AUTOGENERATED BY 'rclgo-gen generate'
*/
package std_srvs_srv
/*
#cgo LDFLAGS: -L/opt/ros/foxy/lib -Wl,-rpath=/opt/ros/foxy/lib -lrcl -lrosidl_runtime_c -lrosidl_typesupport_c -lrcutils -lrmw_implementation
#cgo LDFLAGS: -lstd_srvs__rosidl_typesupport_c -lstd_srvs__rosidl_generator_c
#cgo CFLAGS: -I/opt/ros/foxy/include
#include <rosidl_runtime_c/message_type_support_struct.h>
#include <std_srvs/srv/trigger.h>
*/
import "C"
import (
"github.com/TIERS/rclgo/pkg/rclgo/typemap"
"github.com/TIERS/rclgo/pkg/rclgo/types"
"unsafe"
)
func init() {
typemap.RegisterService("std_srvs/Trigger", TriggerTypeSupport)
}
type _TriggerTypeSupport struct {}
func (s _TriggerTypeSupport) Request() types.MessageTypeSupport {
return Trigger_RequestTypeSupport
}
func (s _TriggerTypeSupport) Response() types.MessageTypeSupport {
return Trigger_ResponseTypeSupport
}
func (s _TriggerTypeSupport) TypeSupport() unsafe.Pointer {
return unsafe.Pointer(C.rosidl_typesupport_c__get_service_type_support_handle__std_srvs__srv__Trigger())
}
// Modifying this variable is undefined behavior.
var TriggerTypeSupport types.ServiceTypeSupport = _TriggerTypeSupport{}