Skip to content

zmqserver can cache objects - #75

Merged
rdeits merged 1 commit into
meshcat-dev:masterfrom
RussTedrake:zmq_cache
Aug 30, 2020
Merged

rdeits merged 1 commit into
meshcat-dev:masterfrom
RussTedrake:zmq_cache

Conversation

@RussTedrake

Copy link
Copy Markdown
Collaborator

If the zmqserver gets a set_object command that sets precisely the same object data on precisely the same path that already exists, then do not forward it to the connected websockets.

This makes a dramatic improvement in the workflow of using meshcat on colab (at least as we use it in drake), because we don't have to repeatedly download large meshfiles from repeated simulations.

If the zmqserver gets a set_object command that sets precisely the same object data on precisely the same path that already exists, then do not forward it to the connected websockets.
This makes a *dramatic* improvement in the workflow of using meshcat on colab (at least as we use it in drake), because we don't have to repeatedly download large meshfiles from repeated simulations.
@RussTedrake
RussTedrake requested a review from rdeits August 29, 2020 13:58
@codecov-commenter

codecov-commenter commented Aug 29, 2020 •

Copy link
Copy Markdown

Codecov Report

Merging #75 into master will decrease coverage by 0.14%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #75      +/-   ##
==========================================
- Coverage   75.98%   75.83%   -0.15%     
==========================================
  Files          11       11              
  Lines        1012     1014       +2     
==========================================
  Hits          769      769              
- Misses        243      245       +2     
Impacted Files Coverage Δ
src/meshcat/servers/zmqserver.py 32.78% <0.00%> (-0.28%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c1a0702...f9b43a2. Read the comment docs.

@rdeits rdeits left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@rdeits
rdeits merged commit bc62080 into meshcat-dev:master Aug 30, 2020
RussTedrake added a commit to RussTedrake/drake that referenced this pull request Aug 30, 2020
… server

Adds an argument to the constructor to avoid deleting the entire tree on every run.
Sets uuids deterministically based on the mesh file so that they can be recognized as identical on the server.
See meshcat-dev/meshcat-python#75

This makes a *dramatic* improvement in the workflow of using meshcat on colab (at least as we use it in drake), because we don't have to repeatedly download large meshfiles from repeated simulations.
RussTedrake added a commit to RussTedrake/drake that referenced this pull request Sep 1, 2020
… server

Adds an argument to the constructor to avoid deleting the entire tree on every run.
Sets uuids deterministically based on the mesh file so that they can be recognized as identical on the server.
See meshcat-dev/meshcat-python#75

This makes a *dramatic* improvement in the workflow of using meshcat on colab (at least as we use it in drake), because we don't have to repeatedly download large meshfiles from repeated simulations.
EricCousineau-TRI pushed a commit to RobotLocomotion/drake that referenced this pull request Sep 1, 2020
… server (#13971)

Adds an argument to the constructor to avoid deleting the entire tree on every run.
Sets uuids deterministically based on the mesh file so that they can be recognized as identical on the server.
See meshcat-dev/meshcat-python#75

This makes a *dramatic* improvement in the workflow of using meshcat on colab (at least as we use it in drake), because we don't have to repeatedly download large meshfiles from repeated simulations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants