uPy-rosserial icon indicating copy to clipboard operation
uPy-rosserial copied to clipboard

Outline recommended or tested board/firmware combinations

Open erelson opened this issue 4 years ago • 2 comments

I've been trying out this library a bit the past two weekends. Really excited that someone else was able to fill this need! And the documentation is pretty great, too.

It seems to me, based on a couple failures so far, that the top-level README should probably note which board(s) is used and what firmware build?

In my case, I'm using a pyboard v1.1; I suspect you folks are working with the ~pyboard D-series (e.g. has wifi).~ esp32 boards

  • First thing I ran into: Realized I needed a threading-supporting build of firmware for my pyboard. Got v1.12 for pyboard1.1 with that from: http://micropython.org/download/pybv1/
  • Added conditionals for sys.platform == 'pyboard'
  • Now I get an error upon doing uros.NodeHandle(4, 115200) for example, regarding extra kwargs being given. This, I tracked down to uros' core.py, and apparently the firmware I grabbed is one of those that does not support the txbuf kwarg.

Now to continue! Will try modifying core.py on my end :+1:

erelson avatar Apr 20 '20 03:04 erelson

Thank you for your heads up, will improve that part in the following days! Sorry for late response. @erelson

sasilva1998 avatar May 26 '20 00:05 sasilva1998

I am really sorry @erelson have been really busy with university, I am now going through an update for this lib. I am now going with the following:

  • Adding kwargs as you suggested.

  • For the txbuf parameter, I added this since I was having problems before with some Dynamixels libraries I coded, and found that assigning 0 to txbuf basically makes a flush to the serial, which makes the communication better I believe, gotta say I am not really sure, just got used it working like that (will figure out a way to change it)

  • Regarding the platform condition, I don't have a pyboard, so can't really test for it, however if you can, I would be happy to accept a PR from you.

Also yeah, I am using coded all this using a esp32 with micropython v1.12. Have a good one and thanks again. :smiley:

sasilva1998 avatar Aug 10 '20 06:08 sasilva1998