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