Subscribe "cmd_vel"

Dependencies:   ros_lib_kinetic

Committer:
cpbenite
Date:
Fri Nov 02 23:53:38 2018 +0000
Revision:
0:d6f223f1ea8a
Hi Jesus;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
cpbenite 0:d6f223f1ea8a 1 # Getting started with Blinky on mbed OS
cpbenite 0:d6f223f1ea8a 2
cpbenite 0:d6f223f1ea8a 3 This guide reviews the steps required to get Blinky working on an mbed OS platform.
cpbenite 0:d6f223f1ea8a 4
cpbenite 0:d6f223f1ea8a 5 Please install [mbed CLI](https://github.com/ARMmbed/mbed-cli#installing-mbed-cli).
cpbenite 0:d6f223f1ea8a 6
cpbenite 0:d6f223f1ea8a 7 ## Import the example application
cpbenite 0:d6f223f1ea8a 8
cpbenite 0:d6f223f1ea8a 9 From the command-line, import the example:
cpbenite 0:d6f223f1ea8a 10
cpbenite 0:d6f223f1ea8a 11 ```
cpbenite 0:d6f223f1ea8a 12 mbed import mbed-os-example-blinky
cpbenite 0:d6f223f1ea8a 13 cd mbed-os-example-blinky
cpbenite 0:d6f223f1ea8a 14 ```
cpbenite 0:d6f223f1ea8a 15
cpbenite 0:d6f223f1ea8a 16 ### Now compile
cpbenite 0:d6f223f1ea8a 17
cpbenite 0:d6f223f1ea8a 18 Invoke `mbed compile`, and specify the name of your platform and your favorite toolchain (`GCC_ARM`, `ARM`, `IAR`). For example, for the ARM Compiler 5:
cpbenite 0:d6f223f1ea8a 19
cpbenite 0:d6f223f1ea8a 20 ```
cpbenite 0:d6f223f1ea8a 21 mbed compile -m K64F -t ARM
cpbenite 0:d6f223f1ea8a 22 ```
cpbenite 0:d6f223f1ea8a 23
cpbenite 0:d6f223f1ea8a 24 Your PC may take a few minutes to compile your code. At the end, you see the following result:
cpbenite 0:d6f223f1ea8a 25
cpbenite 0:d6f223f1ea8a 26 ```
cpbenite 0:d6f223f1ea8a 27 [snip]
cpbenite 0:d6f223f1ea8a 28 +----------------------------+-------+-------+------+
cpbenite 0:d6f223f1ea8a 29 | Module | .text | .data | .bss |
cpbenite 0:d6f223f1ea8a 30 +----------------------------+-------+-------+------+
cpbenite 0:d6f223f1ea8a 31 | Misc | 13939 | 24 | 1372 |
cpbenite 0:d6f223f1ea8a 32 | core/hal | 16993 | 96 | 296 |
cpbenite 0:d6f223f1ea8a 33 | core/rtos | 7384 | 92 | 4204 |
cpbenite 0:d6f223f1ea8a 34 | features/FEATURE_IPV4 | 80 | 0 | 176 |
cpbenite 0:d6f223f1ea8a 35 | frameworks/greentea-client | 1830 | 60 | 44 |
cpbenite 0:d6f223f1ea8a 36 | frameworks/utest | 2392 | 512 | 292 |
cpbenite 0:d6f223f1ea8a 37 | Subtotals | 42618 | 784 | 6384 |
cpbenite 0:d6f223f1ea8a 38 +----------------------------+-------+-------+------+
cpbenite 0:d6f223f1ea8a 39 Allocated Heap: unknown
cpbenite 0:d6f223f1ea8a 40 Allocated Stack: unknown
cpbenite 0:d6f223f1ea8a 41 Total Static RAM memory (data + bss): 7168 bytes
cpbenite 0:d6f223f1ea8a 42 Total RAM memory (data + bss + heap + stack): 7168 bytes
cpbenite 0:d6f223f1ea8a 43 Total Flash memory (text + data + misc): 43402 bytes
cpbenite 0:d6f223f1ea8a 44 Image: .\.build\K64F\ARM\mbed-os-example-blinky.bin
cpbenite 0:d6f223f1ea8a 45 ```
cpbenite 0:d6f223f1ea8a 46
cpbenite 0:d6f223f1ea8a 47 ### Program your board
cpbenite 0:d6f223f1ea8a 48
cpbenite 0:d6f223f1ea8a 49 1. Connect your mbed device to the computer over USB.
cpbenite 0:d6f223f1ea8a 50 1. Copy the binary file to the mbed device.
cpbenite 0:d6f223f1ea8a 51 1. Press the reset button to start the program.
cpbenite 0:d6f223f1ea8a 52
cpbenite 0:d6f223f1ea8a 53 The LED on your platform turns on and off.
cpbenite 0:d6f223f1ea8a 54
cpbenite 0:d6f223f1ea8a 55 ## Troubleshooting
cpbenite 0:d6f223f1ea8a 56
cpbenite 0:d6f223f1ea8a 57 If you have problems, you can review the [documentation](https://os.mbed.com/docs/latest/tutorials/debugging.html) for suggestions on what could be wrong and how to fix it.