actionlib

如果服务花费很长时间去执行,用户可能在程序执行或者如何获得周期反馈时有取消该请求的能力。

Goal, Feedback, & Result

为了用action来完成任务,我们引用ActionClient发送给ActionServer目标点概念。在移动基体情况下,目标是PoseStamped的消息,包含有关机器人在世界坐标系中目标点位置信息。 用于控制倾斜激光扫描仪,目标将包含扫描参数(最小角度,最大角度,速度等)。

反馈提供服务器告诉给ActionClient关于到达目标进程的方法。对于移动机器人,表示是机器人当前沿着路径的姿态。用于控制倾斜激光扫描仪,这可能是左,直到扫描完成的时间。

结果是根据完成目标情况从ActionServer来发布给ActionClient。这比反馈不同,因为它被发送一次。这是非常有用的,当该操作的目的是为了提供某种信息。对于移动机器人其结果也不是很重要的,但它可能包含机器人的最终姿势。用于控制倾斜激光扫描仪,其结果可能包含来自所请求的扫描中产生的点云。

例如:

test.action

int32 goal
---
int32 result
---
int32 feedback



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
ROS actionlib is a library that provides a way to define and execute long-running, asynchronous tasks in a modular way. It is used to manage and monitor the progress of tasks that have multiple stages or that require feedback during execution. The library provides a flexible and efficient communication protocol that allows nodes to interact with each other in a structured and reliable way. Actionlib is commonly used in robotics applications to control complex behaviors such as navigation, manipulation, or perception. It allows developers to define and execute complex actions as a series of smaller, self-contained tasks. These tasks can be executed in parallel, and the overall progress of the action can be tracked and monitored. Actionlib consists of two main components: the action server and the action client. The action server is responsible for executing the action, while the action client sends requests to the server and monitors the progress of the action. The action server receives requests from the action client and executes the requested action. During execution, the server provides feedback to the client, keeping it informed of the progress of the action. Once the action is complete, the server sends a result message back to the client. The action client sends requests to the server and monitors the progress of the action. It can also cancel the action if necessary. The client receives feedback from the server, allowing it to provide real-time feedback to the user or to adjust its behavior based on the progress of the action. Overall, ROS actionlib provides a powerful and flexible framework for managing and executing complex, asynchronous tasks in ROS-based robotics applications.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值