Homepage GitHub

Show_data_type_info.py script gives different signatures for one custom message


(Sergey Frolov) #1

Hello. I have any troubles with calculating signature for custom message. If I use python 2.7 I get a valid value of signature (0x2bde13409f972973). If I use Python 3.7 and-c prefix I get another value of signature…(0x5e68a28c75b35c1e) And…
If I copy *.uavcan message to Python37 namespace (for calling without -c prefix) I get third(!) variation of signature. (0x17CCB115141356EF)
Something is wrong…
I really confused. For basic messages signatures no difference for any versions of Python. But if I try to make it for custom message, script returns different values.
Why this happens?
Thanks.


(Pavel Kirienko) #2

The signature depends on the namespace so it’s natural that you get a different result after the namespace is changed.

The other one looks suspicious. Could you please share your data types here and show which exact commands you use when invoking the script?


(Sergey Frolov) #3

Hello. We have such message
20501.FuelEngineSensors.uavcan

#
# Message with sensor data fuel engines
#
uint8 id

float16 temperature
float16 temperature_oil
float16 temperature_carb_input
float16 pressure_fuel
float16 pressure_oil
float16 pressure_boost
uint8   shavings_oil
uint16  rpm

And we get different signature, depending where *.uavcan is laying (in default or custom path (-c prefix used))


(Pavel Kirienko) #4

Please show us the directory structure containing the file and which exact commands you use.