astra_ros
Public Member Functions | List of all members
astra_ros::RosDevice Class Reference

Public Member Functions

 RosDevice (const std::string &name, ros::NodeHandle &nh, ros::NodeHandle &pnh)
 
const std::string & getName () const noexcept
 
void update ()
 

Constructor & Destructor Documentation

◆ RosDevice()

astra_ros::RosDevice::RosDevice ( const std::string &  name,
ros::NodeHandle &  nh,
ros::NodeHandle &  pnh 
)

Construct a Device that interacts with ROS.

Parameters
nameThe name of the device. This is used as a namespace for the ROS parameters under the private NodeHandle.
nhThe public ROS NodeHandle
pnhThe private ROS NodeHandle

Member Function Documentation

◆ getName()

const std::string& astra_ros::RosDevice::getName ( ) const
noexcept
Returns
The name of the RosDevice (as configured in the constructor)

◆ update()

void astra_ros::RosDevice::update ( )

Check if a new frame is available, and if so, publish all configured data to ROS.


The documentation for this class was generated from the following file: