|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
19 #ifndef LASER_FROM_EXTERNAL_PORT_H
20 #define LASER_FROM_EXTERNAL_PORT_H
39 typedef unsigned char byte;
52 std::mutex m_port_mutex;
60 m_lastScan(alt.m_lastScan),
61 m_lastStamp(alt.m_lastStamp),
62 m_contains_data(alt.m_contains_data)
109 bool close()
override;
std::vector< yarp::dev::LaserScan2D > m_last_scan_data
A base class for nested structures that can be searched.
contains the definition of a Vector type
std::vector< std::string > m_port_names
void threadRelease() override
Release method.
Interface implemented by all device drivers.
std::vector< InputPortProcessor > m_input_ports
void run() override
Loop function.
PeriodicThread(double period, ShouldUseSystemClock useSystemClock=ShouldUseSystemClock::No)
Constructor.
bool m_option_override_limits
define control board standard interfaces
laserFromExternalPort: Documentation to be added
The DLidarDeviceTemplate class.
A mini-server for performing network communication in the background.
yarp::sig::Vector m_empty_laser_data
bool setHorizontalResolution(double step) override
get the angular step between two measurments (if available)
void calculate(yarp::dev::LaserScan2D scan, yarp::sig::Matrix m)
LaserFromExternalPort(double period=0.01)
std::vector< std::string > m_src_frame_id
A container for a device driver.
yarp::dev::PolyDriver m_tc_driver
yarp::dev::IFrameTransform * m_iTc
std::vector< yarp::os::Stamp > m_last_stamp
An abstraction for a periodic thread.
bool threadInit() override
Initialization method.
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
An abstraction for a time stamp and/or sequence number.
bool close() override
Close the DeviceDriver.
BufferedPort()
Constructor.
bool setDistanceRange(double min, double max) override
set the device detection range.
The main, catch-all namespace for YARP.
void step()
Call this to "step" the thread rather than starting it.
bool setScanRate(double rate) override
set the scan rate (scans per seconds)
std::string m_dst_frame_id
bool setScanLimits(double min, double max) override
set the scan angular range.