了解ROS Services和Parameters

1.使用rosservice命令通过service轻松attach到ROS的客户端服务器框架中,Services是另一种node之间通信的方法,允许node发请求和接收响应。执行rosservice命令,可以看到如下信息:

  Commands:
    rosservice args   printservice arguments
    rosservice call   call theservice with the provided args
    rosservice find   findservices by service type
    rosservice info   printinformation about service
    rosservice list   listactive services
    rosservice type   printservice type
    rosservice uri print serviceROSRPC uri

  Type rosservice -h for moredetailed usage, e.g. 'rosservice call -h'

2.执行rosservice list命令可以查看到对应结点提供的服务情况,如果没有运行turtulesim_node的话,会返回如下信息:

你可能感兴趣的:(ROS,ubuntu,linux,ROS,机器人)