Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
ur_simple_control
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marko Guberina
ur_simple_control
Commits
c37369ef
Commit
c37369ef
authored
8 months ago
by
m-guberina
Browse files
Options
Downloads
Patches
Plain Diff
this is it for logplotting on the real branch, just spawn 1 set of plots and don't resize it
parent
08a34a51
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
python/ur_simple_control/visualize/__pycache__/visualize.cpython-312.pyc
+0
-0
0 additions, 0 deletions
...e_control/visualize/__pycache__/visualize.cpython-312.pyc
python/ur_simple_control/visualize/visualize.py
+5
-3
5 additions, 3 deletions
python/ur_simple_control/visualize/visualize.py
with
5 additions
and
3 deletions
python/ur_simple_control/visualize/__pycache__/visualize.cpython-312.pyc
+
0
−
0
View file @
c37369ef
No preview for this file type
This diff is collapsed.
Click to expand it.
python/ur_simple_control/visualize/visualize.py
+
5
−
3
View file @
c37369ef
...
@@ -304,7 +304,9 @@ def manipulatorComparisonVisualizer(args, model, collision_model, visual_model,
...
@@ -304,7 +304,9 @@ def manipulatorComparisonVisualizer(args, model, collision_model, visual_model,
# get arguments that way.
# get arguments that way.
# but otherwise i can't pass arguments to that.
# but otherwise i can't pass arguments to that.
# even if i could with partial, i can't return them,
# even if i could with partial, i can't return them,
# so no cigar from that
# so no cigar from that.
# NOTE this is being tried out in realtimelogplotter branch
# there is no successful re-drawing here.
def
logPlotter
(
args
,
log
,
cmd_queue
,
ack_queue
):
def
logPlotter
(
args
,
log
,
cmd_queue
,
ack_queue
):
"""
"""
logPlotter
logPlotter
...
@@ -389,8 +391,8 @@ def logPlotter(args, log, cmd_queue, ack_queue):
...
@@ -389,8 +391,8 @@ def logPlotter(args, log, cmd_queue, ack_queue):
axes_and_updating_artists
[
data_key
].
artists
.
set_xdata
([
time_index
])
axes_and_updating_artists
[
data_key
].
artists
.
set_xdata
([
time_index
])
axes_and_updating_artists
[
data_key
].
ax
.
draw_artist
(
axes_and_updating_artists
[
data_key
].
artists
)
axes_and_updating_artists
[
data_key
].
ax
.
draw_artist
(
axes_and_updating_artists
[
data_key
].
artists
)
# NOTE: this is stupid, i just want to catch the resize event
# NOTE: this is stupid, i just want to catch the resize event
if
not
(
counter
%
50
==
0
):
#
if not (counter % 50 == 0):
#
if True:
if
True
:
print
(
counter
)
print
(
counter
)
canvas
.
blit
(
fig
.
bbox
)
canvas
.
blit
(
fig
.
bbox
)
canvas
.
flush_events
()
canvas
.
flush_events
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment