Skip to Content
Hands-On Robotics Programming with C++
book

Hands-On Robotics Programming with C++

by Dinesh Tavasalkar
March 2019
Intermediate to advanced
312 pages
7h 37m
English
Packt Publishing
Content preview from Hands-On Robotics Programming with C++

Installing the ncurses library

New curses (ncurses) is a programming library that allows developers to create text-based user interfaces. It is generally used for creating GUI-based applications or software. One of the key features of the ncurses library is that we can use it for taking inputs from keyboard keys, and controlling hardware devices on the output side. We will use the ncurses library to write programs to detect keys to control our robot accordingly. For example, if we press the up arrow, we want our robot to move forward. If we press the left arrow, we want our robot to take a left turn.

To install the ncurses library, we first have to open the command window. To install ncurses, type in the following command and press Enter ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn Robotics Programming

Learn Robotics Programming

Danny Staple
C++ Reactive Programming

C++ Reactive Programming

Praseed Pai, Peter Abraham

Publisher Resources

ISBN: 9781789139006Supplemental Content