The dynamic change of the priorities

Regarding the dynamic change of the priorities:

To get the priority of the topic '/add_two_ints' for example you have to call:

rosservice call /R0/wmp_control [0,0,0] 6 0 0 /add_two_ints

The '6' is the command get_priority recently added (refer to  http://www.ros.org/wiki/ros-rt-wmp#Controlling_the_ros_rt_wmp)

To set the priority you have to call:

rosservice call /R0/wmp_control [0,0,0] 5 12 0 /add_two_ints

where command '5' is set_priority and '12' is the new priority of the topic.
This is only for the local node. If you need to change remote node topic's priority you have to call:

rosservice call /R0/ remote/wmp_control [0,1,0] 6 0 0 /add_two_ints

where

[0,1,0] is respectively [source_node, destination_node, priority_of_the_call] and the other fields are the same as before.

Notice that is not possible to call local service with a remote call. In other words you can't call the service at /R0/remote/wmp_control from node R0. You have to call /R0/wmp_control instead.

Of course you can call these services from within an independent program or other node (I mean also not from command line).

P.D. I guess you remember but these changes are only on the 'testing' branch


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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值