RMVL  2.5.0-dev
Robotic Manipulation and Vision Library
载入中...
搜索中...
未找到
rm::lpss::async::RobotStatePublisher类 参考

异步机器人状态发布者,基于定时器周期性发布 TF 和 URDF 消息 更多...

#include <rmvl/lpss/robot.hpp>

rm::lpss::async::RobotStatePublisher 的协作图:

Public 成员函数

 RobotStatePublisher (std::string_view name, Node &node, RobotPlanner &planner, uint32_t period)
 构造异步状态发布者
 ~RobotStatePublisher ()
 RobotStatePublisher (const RobotStatePublisher &)=delete
RobotStatePublisheroperator= (const RobotStatePublisher &)=delete

详细描述

异步机器人状态发布者,基于定时器周期性发布 TF 和 URDF 消息

事件循环仍然由 node 管理,需要由用户自行调用 node.spin() 来驱动定时器回调的执行。

构造及析构函数说明

◆ RobotStatePublisher() [1/2]

rm::lpss::async::RobotStatePublisher::RobotStatePublisher ( std::string_view name,
Node & node,
RobotPlanner & planner,
uint32_t period )

构造异步状态发布者

基于事件循环定时器,周期性发布 TF 和 URDF 数据。

参数
[in]name机器人名称,将用于构造发布主题名称前缀,如 <name>/tf<name>/robot_description
[in]nodeLPSS 节点
[in]planner机器人规划器对象,发布者将从中获取 TF 和 URDF 数据
[in]periodTF 消息发布周期(单位:毫秒),URDF 消息发布周期将固定设置为 1s

◆ ~RobotStatePublisher()

rm::lpss::async::RobotStatePublisher::~RobotStatePublisher ( )

◆ RobotStatePublisher() [2/2]

rm::lpss::async::RobotStatePublisher::RobotStatePublisher ( const RobotStatePublisher & )
delete
函数调用图:

成员函数说明

◆ operator=()

RobotStatePublisher & rm::lpss::async::RobotStatePublisher::operator= ( const RobotStatePublisher & )
delete
函数调用图: