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
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.47.253