Skip to main content

Threaded Applications with the roscpp API

  • Chapter
  • First Online:
Robot Operating System (ROS)

Part of the book series: Studies in Computational Intelligence ((SCI,volume 625))

  • 13k Accesses

Abstract

We begin this tutorial by discussing the features of the Catkin build system. We then proceed by giving a thorough explanation of ROS callback functions in terms of sensor data. We utilize the Qt5 libraries to make a very simple Graphical User Interface to control the robot with on screen buttons, as well as view position information in \((x, y, \theta )\) coordinates. This GUI will use the Qt thread library as well as ROS messages to control and provide information about the state of the robot.

Special thanks to Dr. Julie A. Adams.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 189.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 249.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 249.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    This command is only found when Qt5Core is in the build environment. This command is also only available in CMake versions 2.8.9 and later.

  2. 2.

    Note that this is by no means a requirement: one may implement the UI with Qt Designer if one so chooses, as was mentioned in Sect. 3.2.

  3. 3.

    close() is a function inherited from QWidget that closes the window.

  4. 4.

    This is the standard topic for such a message; however, the reader is encouraged to find a way to initialize this with a variable topic [Hint: add a const char * to the constructor which defaults to “cmd_vel”].

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Hunter L. Allen .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Springer International Publishing Switzerland

About this chapter

Cite this chapter

Allen, H.L. (2016). Threaded Applications with the roscpp API. In: Koubaa, A. (eds) Robot Operating System (ROS). Studies in Computational Intelligence, vol 625. Springer, Cham. https://doi.org/10.1007/978-3-319-26054-9_3

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-26054-9_3

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-26052-5

  • Online ISBN: 978-3-319-26054-9

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics