You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a little similar implementation of `genpy` for uPy. In order to use rosserial with it, having messages classes. For that and automation purposes, this package has been done so that this classes can be done easily. This has been done to be used with [uPy rosserial](https://github.com/FunPythonEC/uPy-rosserial).
4
+
5
+
## Features
6
+
7
+
-[x] uPy files gen with publish availability
8
+
-[ ] uPy files gen with subscribe availability
9
+
-[ ] Actions
10
+
-[ ] Services
11
+
12
+
## Installation
13
+
In order to use this package the folder `ugenpy` from `src` must be copied to the flash memory. I strongly recommend using [rshell](https://github.com/dhylands/rshell) for this task.
14
+
15
+
There is also a folder called `std_msgs` which has all default `*.msg` files, this folder can also be copied or any other folder with the wanted message types. For memory purposes not all the `msg` files in that folder must be copied, only the ones that are going to be used.
16
+
17
+
>Note: Soon this will be available to be installed with upip.
18
+
19
+
## Usage
20
+
21
+
Suppose there is already the dir `std_msgs/ColorRGB.msg` and we want to create the uPy file for it, then a script like below can be run:
22
+
23
+
```python
24
+
from ugenpy.message import MessageGenerator
25
+
msg=MessageGenerator('std_msgs/ColorRGBA.msg')
26
+
msg.create_message()
27
+
```
28
+
29
+
You could verify it has been created with the following:
30
+
```python
31
+
import os
32
+
os.listdir('std_msgs')
33
+
```
34
+
=======
2
35
Here everything needed in order to generate the python files for message usage can be found.
0 commit comments