|
| RosDevice (const std::string &name, ros::NodeHandle &nh, ros::NodeHandle &pnh) |
|
const std::string & | getName () const noexcept |
|
void | update () |
|
◆ RosDevice()
astra_ros::RosDevice::RosDevice |
( |
const std::string & |
name, |
|
|
ros::NodeHandle & |
nh, |
|
|
ros::NodeHandle & |
pnh |
|
) |
| |
Construct a Device that interacts with ROS.
- Parameters
-
name | The name of the device. This is used as a namespace for the ROS parameters under the private NodeHandle . |
nh | The public ROS NodeHandle |
pnh | The private ROS NodeHandle |
◆ 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: