Skip to content

Commit 6789543

Browse files
committed
migrate rosserial_msgs
1 parent dfbcd4e commit 6789543

File tree

3 files changed

+10
-95
lines changed

3 files changed

+10
-95
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,23 @@ Before using this library you must have ROS installed, as well as rosserial whic
1919

2020
In theory every board with the kind of generic `UART` class for ESP32 is capable of using this library, but it must be known exactly which `UART ID` is being used, this means for example, for ESP32 defined pins correspond to TX0 and RX0 for UART0, and so on. In the examples below, UART2 is used.
2121

22-
In order to use ros node communication, have in mind a python class for each message must be available. this means a dependency of this library is [uPy Genpy](https://github.com/FunPythonEC/uPy-genpy), used to create Python classes for messages from `*.msg` files. Follow the installation from `ugenpy` before proceeding.
22+
In order to use ros node communication, have in mind a python class for each message must be available. this means a dependency of this library is [uPy Genpy](https://github.com/FunPythonEC/uPy-genpy) and [uPy rosserial_msgs](https://github.com/FunPythonEC/uPy-rosserial_msgs), `ugenpy` used to create Python classes for messages from `*.msg` files while `rosserial_msgs` has the `TopicInfo` class for topic negotiation. Follow the installation from `ugenpy` before proceeding.
2323

24-
Once `ugenpy` is inside, the packages `uros` and `rosserial_msgs` from `src` folder from this repository must be copied to the flash memory. I strongly recommend using [rshell](https://github.com/dhylands/rshell).
25-
>Note: Soon this will be available to be installed with upip.
24+
Once `ugenpy` and `rosserial_msgs` are inside, the package `uros` from this repository must be copied to the flash memory. I strongly recommend using [rshell](https://github.com/dhylands/rshell).
25+
26+
Now available with upip, could be installed with:
27+
``` python
28+
import upip
29+
upip.install('micropython-rosserial')
30+
```
31+
>Note: must be connected to WiFi to use upip like this.
2632
2733
**Have in mind before publishing or subscribing to a topic, the message class must be generated with `ugenpy`**
2834

2935
## Usage
3036

3137
Everytime before establishing rosserial communication, this command must be run, even before running the script in uPy, will be improved afterwards:
38+
3239
>rosrun rosserial_arduino serial_node.py _port:=/dev/ttyUSB0 _baud:=115200
3340
3441
**Note port and baudrate can be changed, in ESP32 I prefer using 115200 for baudrate.**

src/rosserial_msgs/_TopicInfo.py

Lines changed: 0 additions & 91 deletions
This file was deleted.

src/rosserial_msgs/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)