Skip to Content
ROS Programming: Building Powerful Robots
book

ROS Programming: Building Powerful Robots

by Anil Mahtani, Luis Sanchez, Enrique Fernandez, Aaron Martinez, Lentin Joseph
March 2018
Intermediate to advanced content levelIntermediate to advanced
1396 pages
42h 14m
English
Packt Publishing
Content preview from ROS Programming: Building Powerful Robots

Running LED blink in Odroid-C1

After building the project, first we can run the LED blink example. We have to login to Odroid using SSH from PC in multiple terminals for running this example.

  • Start roscore in one terminal:
    $ roscore 
  • Run the executable as root in the another terminal:
    $ sudo -s
    # cd  /home/odroid/catkin_ws/build/ros_wiring_examples
    #./blink_led

After starting the blink_led node, publish 1 to the led_blink topic in another terminal.

  • For LED to ON state:
    $ rostopic pub /led_blink std_msgs/Bool 1     
  • For LED to OFF state:
    $ rostopic pub /led_blink std_msgs/Bool 0
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

Programming Robots with ROS

Programming Robots with ROS

Morgan Quigley, Brian Gerkey, William D. Smart
Machine Learning Design Patterns

Machine Learning Design Patterns

Valliappa Lakshmanan, Sara Robinson, Michael Munn

Publisher Resources

ISBN: 9781788627436Supplemental Content