Skip to content

Commit

Permalink
changes made from hall computer: fix vicon msg, correct imports
Browse files Browse the repository at this point in the history
  • Loading branch information
AnasIbrahim committed Feb 24, 2020
1 parent f9e8e70 commit 79ac4ed
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion floor_flasher/fabfile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import urllib.request
#import urllib.request
import json

from fabric.api import *
Expand Down
4 changes: 2 additions & 2 deletions imu_reader/listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ def callback(data):
global topic
j_msg = {
'object': topic,
'translation': [data.translation.x, data.translation.y, data.translation.z],
'rotation': [data.rotation.x, data.rotation.y, data.rotation.z],
'translation': [data.transform.translation.x, data.transform.translation.y, data.transform.translation.z],
'rotation': [data.transform.rotation.x, data.transform.rotation.y, data.transform.rotation.z],
'time': time()
}
with open("vicon_data.txt", "a+") as test_data:
Expand Down
2 changes: 1 addition & 1 deletion imu_reader/live_plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ def on_message(client, userdata, msg):
client.loop_forever()
except KeyboardInterrupt:
print('disconnect')
client.disconnect()
client.disconnect()
2 changes: 1 addition & 1 deletion imu_reader/plot_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from random import randint

from statistics import *
import statistics


class DataPlot:
Expand Down

0 comments on commit 79ac4ed

Please sign in to comment.