ROS ACTIONLIB

Viewing the Code

actionlib_tutorials is a series of tutorials for using the actionlib client API. You can browse these tutorials by installingcommon_tutorials and roscd-ing to the actionlib_tutorials package, i.e.

$ apt-get install ros-%DISTRO%-common-tutorials
$ roscd actionlib_tutorials

and viewing what is there. Many of these tutorials are also discussed in the wiki tutorials:

Workspace Setup

If you have not yet created a workspace in which to complete the tutorials, click here for some brief instructions .

Before starting any of the actionlib tutorials take the time to create a scratch package to work in and manipulate the example code. Create a sandbox package with the following dependencies:

$ cd %YOUR_CATKIN_WORKSPACE%/src
$ catkin_create_pkg learning_actionlib actionlib message_generation roscpp rospy std_msgs actionlib_msgs

(If you're not familliar with creating catkin packages, see Creating_a_catkin_Package tutorial (in that page, don't forget to choose catkin as build system).

Beginner Tutorials

  1. Writing a Simple Action Server using the Execute Callback

    This tutorial covers using the simple_action_server library to create a Fibonacci action server. This example action server generates a Fibonacci sequence, the goal is the order of the sequence, the feedback is the sequence as it is computed, and the result is the final sequence.

  2. Writing a Simple Action Client

    This tutorial covers using the simple_action_client library to create a Fibonacci action client. This example program creates an action client and sends a goal to the action server.

  3. Running an Action Client and Server

    This tutorial covers running the Fibonacci server and client then visualizing the channel output and node graph.

  4. Writing a Simple Action Server using the Execute Callback (Python)

    This tutorial covers using the simple_action_server library to create a Fibonacci action server in Python. This example action server generates a Fibonacci sequence, the goal is the order of the sequence, the feedback is the sequence as it is computed, and the result is the final sequence.

  5. Writing a Simple Action Client (Python)

    This tutorial covers using the action_client library to create a Fibonacci simple action client in Python.

Intermediate Tutorials

  1. Writing a Simple Action Server using the Goal Callback Method

    This tutorial covers using the simple_action_server library to create an averaging action server. This example shows how to use an action to process or react to incoming data from ros nodes. The action server averages data from a ros node, the goal is the number of samples to average, the feedback is the sample number, the sample data, the current average, and current standard deviation, and the result is the average and standard deviation of the requested number of samples.

  2. Writing a Threaded Simple Action Client

    This tutorial covers using the simple_action_client library to create a averaging action client. This example program spins a thread, creates an action client, and sends a goal to the action server.

  3. Running an Action Server and Client with Other Nodes

    This tutorial covers running the averaging action server and client with another data node then visualizing the channel output and node graph.

Advanced Tutorials

  1. Writing a Callback Based SimpleActionClient

    Example of using callbacks for program flow that's more complicated than a simple, linear script.

Wiki: actionlib_tutorials (2012-12-26 20:31:59由IsaacSaito编辑)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值