forked from RobotLocomotion/drake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
point_cloud_to_lcm.h
40 lines (33 loc) · 1.07 KB
/
point_cloud_to_lcm.h
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
#pragma once
#include <string>
#include "drake/common/drake_copyable.h"
#include "drake/systems/framework/leaf_system.h"
namespace drake {
namespace perception {
/// Converts PointCloud inputs to lcmt_point_cloud output messages. The
/// message can be transmitted to other processes using LcmPublisherSystem.
///
/// @system
/// name: PointCloudToLcm
/// input_ports:
/// - point_cloud
/// output_ports:
/// - lcmt_point_cloud
/// @endsystem
///
/// Any descriptor channels of the PointCloud will currently be ignored,
/// though may be added in a future revision.
///
/// Only the finite points from the cloud are copied into the message
/// (too-close or too-far points from a depth sensor are omitted).
class PointCloudToLcm final : public systems::LeafSystem<double> {
public:
DRAKE_NO_COPY_NO_MOVE_NO_ASSIGN(PointCloudToLcm)
/// Constructs a system that outputs messages using the given `frame_name`.
explicit PointCloudToLcm(std::string frame_name = {});
~PointCloudToLcm() final;
private:
const std::string frame_name_;
};
} // namespace perception
} // namespace drake