Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RT Capabilities Part 1 - robot-log-visualizer #80

Open
wants to merge 98 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
b46676b
Added the basics of the connect button in the menu
nicktrem Dec 26, 2023
6f1ec87
Added dummy data to test formatting and gui representation
nicktrem Dec 29, 2023
cfd0ede
Added a real-time logger button to the GUI
nicktrem Dec 29, 2023
f20c655
Added another test data set
nicktrem Dec 29, 2023
5b700c5
initial test of reading form YARP port passed
nicktrem Dec 31, 2023
f8153d4
Added more plot support for real-time data
nicktrem Jan 2, 2024
a716e59
Fixed small bug in plotting regarding mutiple plots at the same time
nicktrem Jan 2, 2024
ff33dc2
Fixed race condition with graphs and bug with plot indexes
nicktrem Jan 2, 2024
2de1dcd
Removed the need to pre-inform the logger about the data coming in
nicktrem Jan 2, 2024
6a3840d
Fixed race condition bug
nicktrem Jan 2, 2024
aa331dd
Removed hard-coded value for the length of incoming data
nicktrem Jan 2, 2024
3b86123
Can now stream all data (except mesh data) in real-time
nicktrem Jan 4, 2024
886a45b
Cleaned up the code a bit
nicktrem Jan 4, 2024
a1a0799
Added mesh support, cleaned up the code a bit
nicktrem Jan 5, 2024
e412bf4
Cleaned up the code, removed hard-coded values
nicktrem Jan 5, 2024
e19c626
Cleaned up the code some more
nicktrem Jan 9, 2024
835a17f
Added sliding window feature and icon for connection
nicktrem Jan 9, 2024
0bf0525
Fixed bug with real time logging window
nicktrem Jan 9, 2024
872b364
removed hardcoded value for fixed plot window
nicktrem Jan 9, 2024
36c9f3b
Moved intialization values outside of the conneciton loop
nicktrem Jan 9, 2024
031c401
Fixed blocking when connection closed, changed the YARP port name
nicktrem Jan 9, 2024
de5a54a
Added label to rt connection option in GUI
nicktrem Jan 9, 2024
be3d77f
Merge branch 'main' into YARP-port-client
nicktrem Jan 9, 2024
be1a667
Removed Trailing Whitespace
nicktrem Jan 9, 2024
82eb5e5
Removed whitespace
nicktrem Jan 9, 2024
83dbebc
Removed Whitespace
nicktrem Jan 9, 2024
b117936
Fixed issues with merge
nicktrem Jan 12, 2024
228e84f
Fixed freeze when connection stops
nicktrem Jan 12, 2024
4cd3a85
Initial test complete of receiving RT data from Vector Collection Server
nicktrem Jan 15, 2024
6d13f85
Got joint data streaming over the vector collection network
nicktrem Jan 16, 2024
97d2a03
Got mesh updating in realtime, cleaned up the code
nicktrem Jan 17, 2024
56c69ed
Removed unnecessary values from the tree window
nicktrem Jan 17, 2024
da33419
plot scaling now updating correctly
nicktrem Jan 17, 2024
27eb858
Flight data streaming
nicktrem Jan 17, 2024
0681e5a
Got naming corrected
nicktrem Jan 18, 2024
1631469
Fixed freezing when server is not running
nicktrem Jan 18, 2024
8d96948
Cleaned up the code a bit
nicktrem Jan 18, 2024
a8538d6
Added a grid to the plot
nicktrem Jan 18, 2024
4b203ab
Merge branch 'main' into vectorCollectionClientRT
nicktrem Jan 18, 2024
6c60288
Removed whitespace from signal_provider.py
nicktrem Jan 18, 2024
32a05b7
Changed realtime port name
nicktrem Jan 22, 2024
3604f62
Merge branch 'vectorCollectionClientRT' of https://github.com/nicktre…
nicktrem Jan 22, 2024
336db8e
Changes naming of python functions
nicktrem Feb 5, 2024
ad228f1
Edited flag for closing thread properly
nicktrem Feb 8, 2024
e10efaa
Moved enable features outside the loop
nicktrem Feb 9, 2024
bfce38b
Removed timestamps from RT view
nicktrem Feb 9, 2024
3b7e98e
Removed whitespace
nicktrem Feb 9, 2024
cadd9e0
External signals can now be added at any time
nicktrem Feb 13, 2024
0458de2
Cleaned up the code
nicktrem Feb 13, 2024
db95f5e
Removed whitespace
nicktrem Feb 13, 2024
ac36876
Fixed issue of adding mutiple exogenous signals
nicktrem Feb 13, 2024
82b5353
Removed new metadata flag from being displayed
nicktrem Feb 13, 2024
7b6f231
Cleaned up the code
nicktrem Feb 13, 2024
6056056
Might have fixed element names issue
nicktrem Feb 16, 2024
00c9011
Fixed other issue regarding element_names
nicktrem Feb 22, 2024
f633d6d
Removed old comments
nicktrem Mar 4, 2024
0d2408c
Simplified for first part of the PR
nicktrem Mar 4, 2024
4eacfa2
Merge branch 'main' into rtCapabilitiesP1Visualizer
nicktrem Mar 4, 2024
296ee38
Changed to account for python bindings
nicktrem Mar 6, 2024
d8b573b
Changed variable name
nicktrem Mar 6, 2024
ecdf600
Fixed merge
nicktrem Mar 6, 2024
059c6d6
Changed function names to make more sense
nicktrem Mar 13, 2024
a02f24e
Merge branch 'main' into rtCapabilitiesP1Visualizer
nicktrem Apr 8, 2024
621ce36
Rebased for recent changes
nicktrem Apr 8, 2024
b98edec
Removed print statements
nicktrem May 17, 2024
221711a
Removed whitespace
nicktrem May 17, 2024
49880bf
Edited to only clear plot if rt is enabled
nicktrem May 17, 2024
8cb0209
Removed prints, moved some prints to integrated console screen
nicktrem May 17, 2024
989426c
Removed unused function
nicktrem May 17, 2024
40f406b
Removed unused variables/imports
nicktrem May 17, 2024
fa4282f
Fixed bug with text logging
nicktrem May 17, 2024
0b033ba
Converted to snake_case
nicktrem May 17, 2024
f8b88fa
Added exception for if BLF is not installed
nicktrem May 17, 2024
59953ef
Fixed bug regarding naming
nicktrem May 17, 2024
ad96b95
Fixed small bug with the grid
nicktrem May 17, 2024
76b3129
Updated to support latest python binding for vectors collection
nicktrem Sep 2, 2024
767c83c
Fixed bug displaying data offline
nicktrem Sep 3, 2024
2cc7277
Added better exception handling
nicktrem Sep 25, 2024
f5b4a65
Removed unused icon
nicktrem Sep 25, 2024
be77f98
Added gui changes to the visualizer.ui
nicktrem Sep 25, 2024
5df2f88
updates to autogenerated files from qt creator
nicktrem Sep 25, 2024
5461cbe
refactor after RT meeting
nicktrem Jan 31, 2025
05f2a9b
Refactor SignalProvider to include provider type and clean up unused …
GiulioRomualdi Feb 4, 2025
ca2088c
Apply black formatter
GiulioRomualdi Feb 4, 2025
e6a4f67
meeting on Feburary 7th
nicktrem Feb 7, 2025
b469e6c
Fixed lingering plot for rt visualization
nicktrem Feb 7, 2025
d0cd098
Autoscaled y axis in rt plot animation
nicktrem Feb 7, 2025
7c04af1
Fixed issue setting x limits for rt and mat
nicktrem Feb 7, 2025
b41f386
Added ability to gracefully close the program
nicktrem Feb 7, 2025
ccfc2f0
Fixed bug when closing rt plot
nicktrem Feb 7, 2025
b6e372d
Removed unused imports
nicktrem Feb 7, 2025
42b935b
Removed unnecessary plotting lock
nicktrem Feb 7, 2025
2222eaa
Removed unused variables and code
nicktrem Feb 7, 2025
dd9ec7c
Removed maintain_connection function
nicktrem Feb 7, 2025
7a51724
Fixed odd bug where slider moves during rt visualization
nicktrem Feb 7, 2025
f79308e
Added a clarification comment
nicktrem Feb 7, 2025
9c09faa
Removed update_mesh_realtime
nicktrem Feb 7, 2025
d43cb37
Removed online init plot function
nicktrem Feb 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Flight data streaming
nicktrem committed Jan 17, 2024
commit 27eb8587c6c594065be8ff5236f275fdaebd8111
13 changes: 10 additions & 3 deletions robot_log_visualizer/file_reader/signal_provider.py
Original file line number Diff line number Diff line change
@@ -192,7 +192,9 @@ def __populateRealtimeLoggerMetadata(self, rawData, keys, value):
rawData[keys[0]] = {}

if len(keys) == 1:
if "elements_names" not in rawData[keys[0]]:
if len(rawData[keys[0]]) == 0:
return
elif "elements_names" not in rawData[keys[0]]:
rawData[keys[0]]["elements_names"] = np.array([])
rawData[keys[0]]["elements_names"] = np.append(rawData[keys[0]]["elements_names"], value)
else:
@@ -214,6 +216,7 @@ def establish_connection(self):

input = self.vectorCollectionsClient.readData(True)
metadata = self.vectorCollectionsClient.getMetadata()
print(metadata)

if not input:
print("Failed to read realtime YARP port, closing")
@@ -226,11 +229,15 @@ def establish_connection(self):
del metadata["robot_realtime::timestamps"]
del input["robot_realtime::timestamps"]
if not self.initMetadata:
self.joints_name = metadata["robot_realtime::description_list"]
self.robot_name = metadata["robot_realtime::yarp_robot_name"][0]
for keyString, value in metadata.items():
keys = keyString.split("::")
self.__populateRealtimeLoggerMetadata(self.data, keys, value)
self.joints_name = self.data["robot_realtime"]["description_list"]["elements_names"].tolist()
self.robot_name = self.data["robot_realtime"]["yarp_robot_name"]["elements_names"][0]
print("Joints name:")
print(self.joints_name)
print("robot name:")
print(self.robot_name)
del self.data["robot_realtime"]["description_list"]
del self.data["robot_realtime"]["yarp_robot_name"]
self.initMetadata = True