ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

How to run follower demo using voice control demo ?

asked 2013-06-13 06:11:41 -0500

Amal gravatar image

updated 2013-11-18 19:30:20 -0500

tfoote gravatar image

Hi all,

I try Turtlebot Voice Control Demo, and it worked . Now I want to add new voice instruction, so I add this instructions in nav_command.txt and upload it to Sphinx Knowledge Base Tool I finish this step successfully Now I have to modify on which map the voice instruction into robot action If I want to say "come with me" so this voice instruction make robot run follower demo !

any one have idea how to do this !

Thanks in Advance

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-06-17 15:20:03 -0500

jorge gravatar image

Hello, sounds a funny idea.

You can use the app_manager to start/stop/lists apps in the robot. Assuming you launched turtlebot_bringup minimal.launch, you can list the available apps with:

rosservice call /turtlebot/list_apps | grep -v data

(the grep is to avoid get spammed with icons binary data)

To start/stop follower:

rosservice call /turtlebot/start_app "name: 'turtlebot_core_apps/follower'"
rosservice call /turtlebot/stop_app "name: 'turtlebot_core_apps/follower'"

Note that start the app takes some time, as it launches opennni driver and some other stuff. Once started, following behavior can be activated/deactivated with:

rosservice call /turtlebot_follower/change_state "state: 1"
rosservice call /turtlebot_follower/change_state "state: 0"

This is much faster and less error prone that start/stop the app. Btw, you can also call services with the service client API.

edit flag offensive delete link more


I want to start robot follower using voice control

Amal gravatar image Amal  ( 2013-06-18 07:49:51 -0500 )edit

Yep, in your voice recognition system you can call the above mentioned services. I'm not familiar with Sphinx, but I suppose you have some kind of callbacks in your program when it recognizes a command.

jorge gravatar image jorge  ( 2013-06-18 13:44:57 -0500 )edit

Question Tools

1 follower


Asked: 2013-06-13 06:11:41 -0500

Seen: 653 times

Last updated: Jun 17 '13