Book Image

ROS Robotics Projects

Book Image

ROS Robotics Projects

Overview of this book

Robot Operating System is one of the most widely used software frameworks for robotic research and for companies to model, simulate, and prototype robots. Applying your knowledge of ROS to actual robotics is much more difficult than people realize, but this title will give you what you need to create your own robotics in no time! This book is packed with over 14 ROS robotics projects that can be prototyped without requiring a lot of hardware. The book starts with an introduction of ROS and its installation procedure. After discussing the basics, you’ll be taken through great projects, such as building a self-driving car, an autonomous mobile robot, and image recognition using deep learning and ROS. You can find ROS robotics applications for beginner, intermediate, and expert levels inside! This book will be the perfect companion for a robotics enthusiast who really wants to do something big in the field.
Table of Contents (20 chapters)
ROS Robotics Projects
Credits
About the Author
Acknowledgements
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Running a speech-controlled robot application


To run the application, you have to copy the chapter_12_codes/ros_web_ws/speech_commands folder to /var/www/html. If you are in the ros_web_ws folder in Terminal, you can use the following command to do this:

$ sudo cp -r speech_commands /var/www/html

Now run the following ROS launch files to start the TurtleBot simulation, rosbridge, and tf2_republisher nodes:

$ roslaunch turtlebot_gazebo turtlebot_world.launch

Launch the rosbridge server:

$ roslaunch rosbridge_server rosbridge_websocket.launch

Now launch the tf2_web_republisher node using the following command:

$ rosun tf2_web_republisher tf2_web_republisher

Okay, you are done with launching all the ROS nodes. Now, let's open Chrome and enter the following address:

localhost/speech_commands/speechcommands.html

If everything works fine, you will get a window like this:

Figure 9: Speech controller Robot App screen

Here, find the Robot URL box, which has to be set to ws://localhost:9090, and click...