Ref: Pyuavcan 1.1.0.dev1, Windows 10, Python 3.8.2, UDP/Loopback.
Hi Everyone!
I’m a beginner trying evaluating the demo. Heartbeats are being subscribed and diagnostic session is waiting for demo publications. However, I’m facing some trouble with the call and pub commands (please take a look at console messages below - sorry, i’m not allowed to upload files yet).
Could you please help me?
Thanks in advance.
Best regards,
Lellis
Console messages:
uvc call --tr="UDP('127.0.0.111/8')" 42 123.sirius_cyber_corp.PerformLinearLeastSquaresFit.1.0 '{points: [{x: 10, y: 1}, {x: 20, y: 2}]}'
Error: ScannerError: while scanning a quoted scalar
in "<unicode string>", line 1, column 1:
'{points:
^ (line: 1)
found unexpected end of stream
in "<unicode string>", line 1, column 10:
'{points:
^ (line: 1)
uvc pub 283.uavcan.si.temperature.Scalar.1.0 '{kelvin: 123.456}' --count=2 --tr="UDP('127.0.0.111/8')"
Error: TypeError: __init__() missing 1 required positional argument: 'message'
I can’t reproduce your issues locally. Are you sure you are executing exact same commands that you’ve copy-pasted here? The first one in particular looks like a minor syntax error. I am trying this on GNU/Linux though, so there may be some subtle differences here also.
Hi Pavel,
Yes, messages were directly copied from the console. In fact, I copied commands from the Pyuavcan basic demo usage and just added the transport argument.
BR.
I’m deeply sorry. My pub command was using subject id 283 instead of 12345 as you pointed out. It was fixed. Spaces were ok. Commands only worked properly when I replaced the ‘’’ (ASCII code 39) characters by ‘"’ (ASCII code 34) ones in YAML_FIELDS. See below: