6 #ifndef SICK_SCAN_MESSAGE_SICKDEVSETLIDARCONFIGSRVREQUEST_H
7 #define SICK_SCAN_MESSAGE_SICKDEVSETLIDARCONFIGSRVREQUEST_H
14 #include <ros/types.h>
15 #include <ros/serialization.h>
16 #include <ros/builtin_message_traits.h>
17 #include <ros/message_operations.h>
22 template <
class ContainerAllocator>
90 typedef std::basic_string<char, std::char_traits<char>,
typename ContainerAllocator::template rebind<char>::other >
_ip_type;
109 typedef std::shared_ptr< ::sick_scan_xd::SickDevSetLidarConfigSrvRequest_<ContainerAllocator> >
Ptr;
110 typedef std::shared_ptr< ::sick_scan_xd::SickDevSetLidarConfigSrvRequest_<ContainerAllocator>
const>
ConstPtr;
123 template<
typename ContainerAllocator>
124 std::ostream&
operator<<(std::ostream& s, const ::sick_scan_xd::SickDevSetLidarConfigSrvRequest_<ContainerAllocator> & v)
131 template<
typename ContainerAllocator1,
typename ContainerAllocator2>
132 bool operator==(const ::sick_scan_xd::SickDevSetLidarConfigSrvRequest_<ContainerAllocator1> & lhs, const ::sick_scan_xd::SickDevSetLidarConfigSrvRequest_<ContainerAllocator2> & rhs)
134 return lhs.index == rhs.index &&
135 lhs.minrange == rhs.minrange &&
136 lhs.maxrange == rhs.maxrange &&
137 lhs.minangle == rhs.minangle &&
138 lhs.maxangle == rhs.maxangle &&
141 lhs.yaw == rhs.yaw &&
142 lhs.upsidedown == rhs.upsidedown &&
144 lhs.port == rhs.port &&
145 lhs.interfacetype == rhs.interfacetype &&
146 lhs.maplayer == rhs.maplayer &&
147 lhs.active == rhs.active;
150 template<
typename ContainerAllocator1,
typename ContainerAllocator2>
151 bool operator!=(const ::sick_scan_xd::SickDevSetLidarConfigSrvRequest_<ContainerAllocator1> & lhs, const ::sick_scan_xd::SickDevSetLidarConfigSrvRequest_<ContainerAllocator2> & rhs)
153 return !(lhs == rhs);
161 namespace message_traits
168 template <
class ContainerAllocator>
173 template <
class ContainerAllocator>
178 template <
class ContainerAllocator>
183 template <
class ContainerAllocator>
188 template <
class ContainerAllocator>
193 template <
class ContainerAllocator>
199 template<
class ContainerAllocator>
204 return "bcc8a58e8b9a56100f4e9919c37f836a";
207 static const char*
value(const ::sick_scan_xd::SickDevSetLidarConfigSrvRequest_<ContainerAllocator>&) {
return value(); }
208 static const uint64_t static_value1 = 0xbcc8a58e8b9a5610ULL;
209 static const uint64_t static_value2 = 0x0f4e9919c37f836aULL;
212 template<
class ContainerAllocator>
217 return "sick_scan/SickDevSetLidarConfigSrvRequest";
220 static const char*
value(const ::sick_scan_xd::SickDevSetLidarConfigSrvRequest_<ContainerAllocator>&) {
return value(); }
223 template<
class ContainerAllocator>
228 return "# Definition of ROS service SickDevSetLidarConfig for sick localization\n"
229 "# Sets the configuration for a lidar\n"
230 "# Example call (ROS1):\n"
231 "# rosservice call SickDevSetLidarConfig \"{index: 0, minrange: 100, maxrange: 200000, minangle: -15000, maxangle: 15000, x: 1000, y: -1000, yaw: 2000, upsidedown: true, ip: 192.168.0.123, port: 2111, interfacetype: 0, maplayer: 0, active: true}\"\n"
232 "# Example call (ROS2):\n"
233 "# ros2 service call SickDevSetLidarConfig sick_scan/srv/SickDevSetLidarConfigSrv \"{index: 0, minrange: 100, maxrange: 200000, minangle: -15000, maxangle: 15000, x: 1000, y: -1000, yaw: 2000, upsidedown: true, ip: 192.168.0.123, port: 2111, interfacetype: 0, maplayer: 0, active: true}\"\n"
237 "# Request (input)\n"
240 "uint32 index # Index of the lidar that shall be configured. [0, 1] \n"
241 "uint32 minrange # Beams with a range lower than this distance will be discarded. [<min>, 250000] in [mm] \n"
242 "uint32 maxrange # Beams with a range greater than this distance will be discarded. [<min>, 250000] in [mm] \n"
243 "int32 minangle # Beams with an angle lower than this threshold will be discarded. [-180000, 180000] in [mdeg] \n"
244 "int32 maxangle # Beams with an angle greater than this threshold will be discarded. [-180000, 180000] in [mdeg] \n"
245 "int32 x # X position relative to vehicle coordinate system. [-50000, 50000] in [mm] \n"
246 "int32 y # Y position relative to vehicle coordinate system. [-50000, 50000] in [mm] \n"
247 "int32 yaw # Yaw angle relative to vehicle coordinate system. [-180000, 180000] in [mdeg] \n"
248 "bool upsidedown # Whether the sensor is mounted upside down. {0 (false), 1 (true)} \n"
249 "string ip # IP address of the sensor. Must be in the same subnet as the port which it is connected to. Max length = 15 \n"
250 "uint32 port # COLA Port of the scanner used for communication. This is usually 2111 or 2122. [0, 65535] \n"
251 "int32 interfacetype # The type of the interface to this lidar. {0 (TCP), 1 (SERIAL)} \n"
252 "uint32 maplayer # The index of the map layer on which this LiDAR operates. If no map layers are used, set it to 0. NOTE: This feature is not implemented yet but is reserved for later releases. [<min>, <max>] \n"
253 "bool active # Whether this scanner shall be used for localization. For the LiDAR with the index 0 this should be always 1 (true). {0 (false), 1 (true)} \n"
258 static const char*
value(const ::sick_scan_xd::SickDevSetLidarConfigSrvRequest_<ContainerAllocator>&) {
return value(); }
266 namespace serialization
271 template<
typename Stream,
typename T>
inline static void allInOne(
Stream& stream, T m)
273 stream.next(m.index);
274 stream.next(m.minrange);
275 stream.next(m.maxrange);
276 stream.next(m.minangle);
277 stream.next(m.maxangle);
281 stream.next(m.upsidedown);
284 stream.next(m.interfacetype);
285 stream.next(m.maplayer);
286 stream.next(m.active);
297 namespace message_operations
300 template<
class ContainerAllocator>
303 template<
typename Stream>
static void stream(Stream& s,
const std::string&
indent, const ::sick_scan_xd::SickDevSetLidarConfigSrvRequest_<ContainerAllocator>& v)
327 s <<
indent <<
"interfacetype: ";
339 #endif // SICK_SCAN_MESSAGE_SICKDEVSETLIDARCONFIGSRVREQUEST_H