-
Notifications
You must be signed in to change notification settings - Fork 5
Conversation
I am not sure about the |
Also note that a PROTO is a node and we would like that there is no difference between basic nodes and PROTO nodes for users, so I do not think it is good to specify it with |
My reason for using the I think it's important to put PROTOs at the forefront as they're powerful and actually very useful. I wonder whether more people would take the time to learn and use them if we highlight them more like this. |
But they are all nodes. If we want to have a user-friendly and easy-to-use interface a users should not care if he is using a PROTO or a node. For him in the scene tree they should look exactly the same.. But we can better discuss this during the meeting. |
reference/background.md
Outdated
MFString frontUrl [ ] # [list of strings] | ||
MFString leftUrl [ ] # [list of strings] | ||
MFString rightUrl [ ] # [list of strings] | ||
MFString topUrl [ ] # [list of strings] |
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.
In that case, I believe we might be more precise, like: # [list of image URLs]
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 sounds good to me!
I've fixed a couple of latent problems with the doc css here too. |
👍 |
reference/background.md
Outdated
MFString leftUrl [ ] # [list of Image URLs] | ||
MFString rightUrl [ ] # [list of Image URLs] | ||
MFString topUrl [ ] # [list of Image URLs] | ||
MFColor skyColor [ 0 0 0 ] # [0,1] |
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.
Missing space after coma.
reference/compass.md
Outdated
SFBool xAxis TRUE # [TRUE, FALSE] | ||
SFBool yAxis TRUE # [TRUE, FALSE] | ||
SFBool zAxis TRUE # [TRUE, FALSE] | ||
SFFloat resolution -1 # [-1, [0, inf]] |
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.
Woow, that's not obvious to understand... Maybe we should use the standard mathematical representation for sets and intervals, which would translate into: { -1, [0, inf) }
. If we use this scientific formalism, which I believe is good, we should also change all the [TRUE, FALSE]
to {TRUE, FALSE}
and [0, inf]
to [0, inf)
, [ImageTexture, PROTO]
to {ImageTexture, PROTO}
, ["symmetric", "active", "passive"]
to {"symmetric", "active", "passive"}
, etc. We should also remove the square brackets around text describing strings to avoid confusion.
See explanations here: https://en.wikipedia.org/wiki/Set_notation
how is this? |
👍 |
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.
We are getting closer
reference/emitter.md
Outdated
SFString type "radio" # {"radio", "serial", "infra-red"} | ||
SFFloat range -1 # {-1, [0, inf)} | ||
SFFloat maxRange -1 # {-1, [0, inf)} | ||
SFFloat aperture -1 # [-1 ,[0, 2*pi]] |
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.
That looks odd... Shouldn't it be {-1, [0, 2*pi]}
instead?
reference/hingejointparameters.md
Outdated
SFVec3f axis 1 0 0 # [0, 1] | ||
SFFloat suspensionSpringConstant 0 # [0, inf) | ||
SFFloat suspensionDampingConstant 0 # [0, inf) | ||
SFVec3f suspensionAxis 1 0 0 # [0, 1] |
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.
Instead of [0, 1]
for axes, which is not very well understandable, I would simply write unit axis
.
reference/lens.md
Outdated
SFVec2f center 0.5 0.5 | ||
SFVec2f radialCoefficients 0 0 | ||
SFVec2f tangentialCoefficients 0 0 | ||
SFVec2f center 0.5 0.5 # [0, 1] |
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.
That looks odd, maybe it would be better to write [0, 1] [0, 1]
instead?
reference/motor.md
Outdated
SFFloat consumptionFactor 10 # [0, inf) | ||
SFVec3f controlPID 10 0 0 # [0, inf) | ||
SFFloat minPosition 0 # [(-inf, inf), [-pi, pi]] | ||
SFFloat maxPosition 0 # [(-inf, inf), [-pi, pi]] |
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.
That looks odd, I would rather write something like (-inf, inf) or [-pi, pi]
reference/motor.md
Outdated
SFFloat maxPosition 0 # [(-inf, inf), [-pi, pi]] | ||
SFFloat maxVelocity 10 # [0, inf) | ||
SFString sound "" # any string | ||
MFNode muscles [] # {Muscle (or derived PROTO)} |
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.
That's not consistent with other cases.
reference/recognition.md
Outdated
SFBool occlusion TRUE # should occlusions between the camera and the objects be checked | ||
SFColor frameColor 1 0 0 # color of the object's frame in the overlay | ||
SFInt32 frameThickness 1 # thickness of the object's frame in the overlay (pixels) | ||
SFFloat maxRange 100 # [0, inf] |
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.
wrong
reference/recognition.md
Outdated
SFInt32 maxObjects -1 # {-1, [0, inf)} | ||
SFBool occlusion TRUE # {TRUE, FALSE} | ||
SFColor frameColor 1 0 0 # [0, 1] | ||
SFInt32 frameThickness 1 # [0, inf] |
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.
wrong
reference/solid.md
Outdated
SFFloat translationStep 0.01 # [0, inf) | ||
SFFloat rotationStep 0.261799387 # [0, inf) | ||
SFVec3f linearVelocity 0 0 0 # [0, inf) | ||
SFVec3f angularVelocity 0 0 0 # [0, inf) |
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.
That's odd, why can't it be any vector?
reference/spotlight.md
Outdated
SFFloat cutOffAngle 0.785398 # [0, pi/2) | ||
SFVec3f direction 0 0 -1 # (-inf, inf) | ||
SFFloat intensity 1 # [0, 1] | ||
SFVec3f location 0 0 10 # (-inf, inf) |
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.
We have a problem with SFVec3f
. Either we write "any vector" or something like "(-inf, inf) (-inf, inf) (-inf, inf)" or simply nothing. Similar problem with SFVec2f
and SFRotation
...
reference/touchsensor.md
Outdated
SFFloat resolution -1 | ||
SFString type "bumper" # ["bumper", "force", "force-3d"] | ||
MFVec3f lookupTable [ 0 0 0, 5000 50000 0 ] # [see below] | ||
SFFloat resolution -1 # [-1, (0, inf)] |
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.
These 3 lines are wrong / non consistent.
closer and closer still. I've fixed your comments and tried to improve |
👍 |
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.
Still...
reference/physics.md
Outdated
SFFloat density 1000 # {-1, [0, inf)} | ||
SFFloat mass -1 # {-1, [0, inf)} | ||
MFVec3f centerOfMass [ ] # {-1, [0, inf)} | ||
MFVec3f inertiaMatrix [ ] # {-1, [0, 1]} |
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.
Those two lines are not understandable to me...
reference/touchsensor.md
Outdated
MFVec3f lookupTable [ 0 0 0, 5000 50000 0 ] | ||
SFFloat resolution -1 | ||
SFString type "bumper" # {"bumper", "force", "force-3d"} | ||
MFVec3f lookupTable [ 0 0 0, 5000 50000 0 ] # see below |
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.
Not consistent: you used "lookup table" previously.
reference/fluid.md
Outdated
SFString description "" # any string | ||
SFFloat density 1000 # {-1, [0, inf)} | ||
SFFloat viscosity 0.001 # [0, inf) | ||
SFVec3f streamVelocity 0 0 0 # any positive vector |
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.
Does it really have to be positive?
reference/jointparameters.md
Outdated
SFFloat dampingConstant 0 # damping constant (Ns/m or Nms) | ||
SFFloat staticFriction 0 # friction constant (Ns/m or Nms) | ||
SFFloat position 0 # [0, inf) | ||
SFVec3f axis 0 0 1 # [0, 1] |
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.
→ unit axis
reference/muscle.md
Outdated
SFBool visible TRUE | ||
SFDouble maxRadius 0.2 # [0, inf) | ||
SFVec3f startOffset 0 0 0 # any positive vector | ||
SFVec3f endOffset 0 0 0 # any positive vector |
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.
Not sure they should be positive...
reference/propeller.md
Outdated
SFNode device NULL # RotationalMotor | ||
SFNode fastHelix NULL # Solid node containing a graphical representation for rotation speed > 24 π rad/s (720 rpm) | ||
SFNode slowHelix NULL # Solid node containing a graphical representation for rotation speed <= 24 π rad/s | ||
SFVec3f shaftAxis 1 0 0 # [0, 1] |
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.
unit axis
reference/track.md
Outdated
SFNode animatedGeometry NULL | ||
SFInt32 geometriesCount 10 | ||
MFNode device [ ] # {LinearMotor, PositionSensor, Brake, PROTO} | ||
SFVec2f textureAnimation 0 0 # any positive vector |
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.
Not sure it should be positive...
reference/worldinfo.md
Outdated
SFFloat physicsDisableAngularThreshold 0.01 # [0, inf) | ||
SFNode defaultDamping NULL # {Damping, PROTO} | ||
SFFloat inkEvaporation 0 # [0, inf) | ||
SFVec3f northDirection 1 0 0 # [-1, 1] |
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.
unit axis
👍 |
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.
Sorry, there still problems...
reference/motor.md
Outdated
SFFloat maxPosition 0 # (-inf, inf) or [-pi, pi] | ||
SFFloat maxVelocity 10 # [0, inf) | ||
SFString sound "" # any string | ||
MFNode muscles [] # {Muscle (or derived PROTO)} |
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.
Why not {Muscle, PROTO}
as done everywhere else?
reference/muscle.md
Outdated
SFDouble maxRadius 0.2 # [0, inf) | ||
SFVec3f startOffset 0 0 0 # any vector | ||
SFVec3f endOffset 0 0 0 # any vector | ||
MFColor colors [ ] # {SFColor, PROTO} |
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.
It's a list of RGB colors here, no PROTO allowed, SFColor is not a node!
reference/pen.md
Outdated
SFFloat leadSize 0.002 | ||
SFFloat maxDistance 0.0 # >= 0.0 | ||
SFBool write TRUE | ||
SFColor inkColor 0 0 0 # [0, 1] |
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.
Similar problem as with SFVec3f
, we should should use "any color" here.
reference/propeller.md
Outdated
SFVec2f torqueConstants 1 0 # any vector | ||
SFNode device NULL # {Solid (or derived)} | ||
SFNode fastHelix NULL # {Solid (or derived)} | ||
SFNode slowHelix NULL # {Solid (or derived)} |
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.
We should add , PROTO
to be consistent with endPoint
.
reference/lidar.md
Outdated
SFFloat defaultFrequency 10 # [minFrequency, maxFrequency] | ||
SFFloat minFrequency 1 # [0, maxFrequency) | ||
SFFloat maxFrequency 25 # [minFrequency, inf) | ||
SFNode rotatingHead NULL # {Solid (or derived)} |
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.
, PROTO
I've fixed the last couple of comments and updated the color fields according to your suggestion. Sorry, I'm finding this PR hard to verify myself. |
👍 |
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.
I quickly reviewed only the SFNode and MFNode additional information but there are still some errors and inconsistencies.
reference/appearance.md
Outdated
MFNode shaders NULL | ||
SFString name "appearance" | ||
SFNode material NULL # {Material, PROTO} | ||
SFNode texture NULL # {ImageTexture, PROTO} |
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.
Missing "MultiTexture" and "ComposedCubeMapTexture"
reference/hinge2joint.md
Outdated
SFNode jointParameters2 NULL # JointParameters for second axis | ||
MFNode device2 [ ] # RotationalMotor, PositionSensor and Brake | ||
SFFloat position2 0 # initial position with respect to the second hinge (rad) | ||
SFNode jointParameters2 NULL # {JointParameters2, PROTO} |
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.
JointParameters2 doesn't exist -> JointParameters
reference/joint.md
Outdated
@@ -2,8 +2,8 @@ | |||
|
|||
``` | |||
Joint { | |||
SFNode jointParameters NULL # a joint parameters node | |||
SFNode endPoint NULL # Solid or SolidReference | |||
SFNode jointParameters NULL # {JointParameters, PROTO} |
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.
To be consistent JointParameters (or derived) -> depending on the type of joint JointParameters or HingeJointParameters is allowed
reference/joint.md
Outdated
SFNode jointParameters NULL # a joint parameters node | ||
SFNode endPoint NULL # Solid or SolidReference | ||
SFNode jointParameters NULL # {JointParameters, PROTO} | ||
SFNode endPoint NULL # {Solid, Slot, PROTO} |
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.
To be consistent Solid (or derived) and missing SolidReference node.
reference/propeller.md
Outdated
SFVec3f centerOfThrust 0 0 0 # any vector | ||
SFVec2f thrustConstants 1 0 # any vector | ||
SFVec2f torqueConstants 1 0 # any vector | ||
SFNode device NULL # {Solid (or derived), PROTO} |
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.
Wrong: only RotationalMotor is allowed -> {RotationalMotor, PROTO}
reference/sliderjoint.md
Outdated
@@ -4,8 +4,8 @@ Derived from [Joint](joint.md). | |||
|
|||
``` | |||
SliderJoint { | |||
MFNode device [ ] # linear motor or linear position sensor | |||
SFFloat position 0 # initial position (m) | |||
MFNode device [ ] # {Linear Motor, Linear PositionSensor, PROTO} |
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.
-
To be consistent with the other descriptions (see Track/HingeJoint node for example):
- "Linear Motor" -> "LinearMotor"
- "Linear PositionSensor" -> "PositionSensor"
-
Missing Brake
reference/track.md
Outdated
SFInt32 geometriesCount 10 | ||
MFNode device [ ] # {LinearMotor, PositionSensor, Brake, PROTO} | ||
SFVec2f textureAnimation 0 0 # any vector | ||
SFNode animatedGeometry NULL # {Shape, Group, PROTO} |
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.
Missing Slot and Transform
reference/slot.md
Outdated
SFString type "" | ||
SFNode endPoint NULL | ||
SFString type "" # any string | ||
SFNode endPoint NULL # {Slot, Group (or derived), PROTO} |
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.
Missing PointLight, SpotLight, Shape
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.
I'm tempted to put # {node, PROTO} here to be consistent with group.md.
👍 (at this point I feel like the boy who cried "wolf") |
address #586.