Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
logs and some delay compensation stuff
- Loading branch information
Benoit Landry
committed
Apr 3, 2015
1 parent
e55220f
commit 4458416
Showing
22 changed files
with
92 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
"""LCM type definitions | ||
This file automatically generated by lcm. | ||
DO NOT MODIFY BY HAND!!!! | ||
""" | ||
|
||
try: | ||
import cStringIO.StringIO as BytesIO | ||
except ImportError: | ||
from io import BytesIO | ||
import struct | ||
|
||
class vortex_sensor_t(object): | ||
__slots__ = ["sensor1"] | ||
|
||
def __init__(self): | ||
self.sensor1 = 0.0 | ||
|
||
def encode(self): | ||
buf = BytesIO() | ||
buf.write(vortex_sensor_t._get_packed_fingerprint()) | ||
self._encode_one(buf) | ||
return buf.getvalue() | ||
|
||
def _encode_one(self, buf): | ||
buf.write(struct.pack(">d", self.sensor1)) | ||
|
||
def decode(data): | ||
if hasattr(data, 'read'): | ||
buf = data | ||
else: | ||
buf = BytesIO(data) | ||
if buf.read(8) != vortex_sensor_t._get_packed_fingerprint(): | ||
raise ValueError("Decode error") | ||
return vortex_sensor_t._decode_one(buf) | ||
decode = staticmethod(decode) | ||
|
||
def _decode_one(buf): | ||
self = vortex_sensor_t() | ||
self.sensor1 = struct.unpack(">d", buf.read(8))[0] | ||
return self | ||
_decode_one = staticmethod(_decode_one) | ||
|
||
_hash = None | ||
def _get_hash_recursive(parents): | ||
if vortex_sensor_t in parents: return 0 | ||
tmphash = (0x154b3a526e452642) & 0xffffffffffffffff | ||
tmphash = (((tmphash<<1)&0xffffffffffffffff) + (tmphash>>63)) & 0xffffffffffffffff | ||
return tmphash | ||
_get_hash_recursive = staticmethod(_get_hash_recursive) | ||
_packed_fingerprint = None | ||
|
||
def _get_packed_fingerprint(): | ||
if vortex_sensor_t._packed_fingerprint is None: | ||
vortex_sensor_t._packed_fingerprint = struct.pack(">Q", vortex_sensor_t._get_hash_recursive([])) | ||
return vortex_sensor_t._packed_fingerprint | ||
_get_packed_fingerprint = staticmethod(_get_packed_fingerprint) | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
53.66 54.45 | ||
17.95 19.88 | ||
102.3 107 | ||
25.63 27.9 | ||
41.42 43.27 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters