Xamla / torch-ros

Torch7/lua wrapper of roscpp via ffi.
http://www.xamla.com/
BSD 3-Clause "New" or "Revised" License
20 stars 5 forks source link

Check tensor type in serialize_inner() #18

Open jnodev opened 6 years ago

jnodev commented 6 years ago

Currently it is possible to assign a tensor of wrong type to a message field. A check could probably be added to Message.lua#L316, e.g. see createTypedWriteTensorMethod().