-
Notifications
You must be signed in to change notification settings - Fork 114
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
Prototype System class. #81
Changes from 5 commits
77cd5d4
61cd1a7
29fc9cb
418c1fc
2a5b721
3c6344a
bfe2138
9aef7d8
8f30674
35cba4d
d0d945f
0ca1d2b
331aa33
826f4d5
964dbe7
1778fee
fd981e7
f6c03a3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,14 +51,13 @@ | |
# this, we create a world frame that is rotated +90 degrees about the N frame's | ||
# z direction. | ||
world_frame = N.orientnew('world', 'Axis', [0.5 * pi, N.z]) | ||
scene = Scene(world_frame, O, | ||
scene = Scene(sys, world_frame, O, | ||
linkP_viz_frame, linkR_viz_frame, sphereP_viz_frame, sphereR_viz_frame) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there any way, that we can use System to eliminate the ReferenceFrame and Point argument supplied here. so that all we need to do is:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That would be nice to clean up the Scene constructor. However, I am not sure this is a good idea. Those two arguments are specific to how the visualization looks, and they have been useful for me before. We can consider this again down the line when System becomes bigger and potentially manages the viz info. But for now (this PR), System does not handle viz info. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think you have to have the option of providing any frame or point as the base viz frame. You could snatch the base frame from the Methods as a default frame, and maybe you could go through all the points stored in the Methods class and find one that has zero velocity in the base frame as a default. |
||
|
||
|
||
# Create the visualization | ||
# ======================== | ||
|
||
scene.generate_visualization_json(coordinates + speeds, constants.keys(), x, | ||
constants.values()) | ||
scene.generate_visualization_json(times) | ||
|
||
scene.display() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what I had been implying for re-integrating Scene visualization stuff.
So that we supply
times
andsys
to the Scene class, and is easier to handle than the existing structure.I am ready to work on integrating this code with
Scene
class(after tomorrow).But also there will be some backwards incompatible changes(in Scene class as well), when this is integrated into Scene.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that is why we are creating this, so that you can have something easier to work with in your viz code. It won't be ready tomorrow, but please help contribute to this so we can get it done more quickly.