6#ifndef LASER_FROM_EXTERNAL_PORT_H
7#define LASER_FROM_EXTERNAL_PORT_H
32 std::mutex m_port_mutex;
40 m_lastScan(
alt.m_lastScan),
41 m_lastStamp(
alt.m_lastStamp),
42 m_contains_data(
alt.m_contains_data)
119 bool close()
override;
define control board standard interfaces
contains the definition of a Vector type
laserFromExternalPort: Documentation to be added
bool close() override
Close the DeviceDriver.
yarp::dev::ReturnValue setHorizontalResolution(double step) override
get the angular step between two measurements (if available)
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
bool threadInit() override
Initialization method.
std::vector< std::string > m_src_frame_id
std::vector< yarp::os::Stamp > m_last_stamp
std::string m_dst_frame_id
std::vector< LaserFromExternalPort_InputPortProcessor > m_input_ports
yarp::dev::ReturnValue setScanLimits(double min, double max) override
set the scan angular range.
bool acquireDataFromHW() override final
This method should be implemented by the user, and contain the logic to grab data from the hardware.
std::vector< yarp::sig::LaserScan2D > m_last_scan_data
yarp::sig::Vector m_empty_laser_data
bool m_option_override_limits
yarp::dev::IFrameTransform * m_iTc
void run() override
Loop function.
LaserFromExternalPort(double period=0.01)
std::vector< std::string > m_port_names
void threadRelease() override
Release method.
yarp::dev::ReturnValue setScanRate(double rate) override
set the scan rate (scans per seconds)
yarp::dev::ReturnValue setDistanceRange(double min, double max) override
set the device detection range.
yarp::dev::PolyDriver m_tc_driver
void calculate(yarp::sig::LaserScan2D scan, yarp::sig::Matrix m)
Interface implemented by all device drivers.
The Lidar2DDeviceBase class.
A container for a device driver.
A mini-server for performing network communication in the background.
BufferedPort()
Constructor.
An abstraction for a periodic thread.
PeriodicThread(double period, ShouldUseSystemClock useSystemClock=ShouldUseSystemClock::No, PeriodicThreadClock clockAccuracy=PeriodicThreadClock::Relative)
Constructor.
void step()
Call this to "step" the thread rather than starting it.
A base class for nested structures that can be searched.
An abstraction for a time stamp and/or sequence number.
The main, catch-all namespace for YARP.