-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Automotive TrajectoryAgents #8725
Conversation
+@stonier feature review. Review status: 0 of 4 files reviewed at latest revision, all discussions resolved. Comments from Reviewable |
automotive/trajectory_agent.h
Outdated
/// * velocity | ||
/// (OutputPort getter: raw_pose_output()) | ||
/// | ||
/// output port 1: A PoseVector containing X_WC, where C is the car frame. |
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.
Agent, !Car -> X_WA?
9e71bd0
to
7517361
Compare
pending conflict fixes / CI resolution Comments from Reviewable |
7517361
to
db88b42
Compare
+@sherm1 for platform review please. Review status: 0 of 5 files reviewed at latest revision, all discussions resolved, some commit checks failed. Comments from Reviewable |
BTW, I’m not entirely sure what to make of the CI error. It looks like a pybind thing but not sure. Review status: 0 of 5 files reviewed at latest revision, all discussions resolved, some commit checks failed. Comments from Reviewable |
I don't think it's Per the fixes Jeremy submitted in #8726, I think you'd add the target to the dependency list:
|
Ah, 🤦, thanks. I should have looked at the updated BUILD file. It's clear to me now. Review status: 0 of 5 files reviewed at latest revision, all discussions resolved, some commit checks failed. Comments from Reviewable |
db88b42
to
eac0f72
Compare
Reviewed 1 of 4 files at r1, 2 of 3 files at r2, 2 of 2 files at r3. automotive/trajectory_agent.h, line 34 at r3 (raw file):
BTW consider saying this is a SimpleCarState. automotive/trajectory_agent.h, line 38 at r3 (raw file):
BTW is this ẋ ẏ heading_dot? (consider clarifying) automotive/trajectory_agent.h, line 45 at r3 (raw file):
BTW this is not correct (and I see FrameVelocity's documentation is wrong too :( ). What you are outputting here is the spatial velocity of A in W, which we write V_WA. That is not the same thing as Xdot_WA, which literally means d/dt X_WA. The derivative of a vector or matrix quantity is an identically-shaped quantity whose elements are the time derivatives of the original elements. That is definitely not true here since (1) a PoseVector has 7 elements while FrameVelocity has 6, and (I hate to say this) (2) the rotational and translational elements are flipped around (!!). automotive/trajectory_agent.h, line 47 at r3 (raw file):
BTW why do you use FrameVelocity here rather than SpatialVelocity? I notice you use PoseVelocity elsewhere and that uses SpatialVelocity. automotive/trajectory_agent.h, line 66 at r3 (raw file):
BTW does this format correctly in doxygen? automotive/trajectory_agent.h, line 76 at r3 (raw file):
BTW you need an Please generate the doxygen for this PR and inspect it to make sure it is formatted as you expected (and confirm here that it is). automotive/trajectory_agent.h, line 103 at r3 (raw file):
BTW could this be SpatialVelocity? Then you can just copy it directly out of PoseVelocity. automotive/trajectory_agent.cc, line 40 at r3 (raw file):
BTW I see that PoseVelocity isn't templatized. Does that mean the derivatives produced when T=AutoDiff are wrong? If so, please document. Otherwise please add a comment (not sure if this is the right place) explaining why everything is still good. automotive/test/trajectory_agent_test.cc, line 57 at r3 (raw file):
FYI spacing seems odd. Comments from Reviewable |
eac0f72
to
ffb73a7
Compare
Comments addressed. Review status: 3 of 5 files reviewed at latest revision, 9 unresolved discussions. automotive/trajectory_agent.h, line 34 at r3 (raw file): Previously, sherm1 (Michael Sherman) wrote…
Done. automotive/trajectory_agent.h, line 38 at r3 (raw file): Previously, sherm1 (Michael Sherman) wrote…
Done. automotive/trajectory_agent.h, line 45 at r3 (raw file): Previously, sherm1 (Michael Sherman) wrote…
Done. automotive/trajectory_agent.h, line 47 at r3 (raw file): Previously, sherm1 (Michael Sherman) wrote…
I'm using FrameVelocity simply because I want all outputs to be Vector-based, as opposed to Abstract outputs. SpatialVelocity does not specialize BasicVector, so instead I'm using its BasicVector container (FrameVelocity). automotive/trajectory_agent.h, line 66 at r3 (raw file): Previously, sherm1 (Michael Sherman) wrote…
automotive/trajectory_agent.h, line 76 at r3 (raw file): Previously, sherm1 (Michael Sherman) wrote…
Done. The automotive/trajectory_agent.h, line 103 at r3 (raw file): Previously, sherm1 (Michael Sherman) wrote…
(see above for the automotive/trajectory_agent.cc, line 40 at r3 (raw file): Previously, sherm1 (Michael Sherman) wrote…
Done. (I've added a note within the class documentation to clarify.) automotive/test/trajectory_agent_test.cc, line 57 at r3 (raw file): Previously, sherm1 (Michael Sherman) wrote…
Done. (I think this was clang-format's fault) Comments from Reviewable |
Reviewed 2 of 2 files at r4. automotive/trajectory_agent.h, line 41 at r4 (raw file):
BTW ṡ -> s ? (Looks more like an acceleration if it is speed_dot.) Comments from Reviewable |
ffb73a7
to
a48936d
Compare
Review status: 4 of 5 files reviewed at latest revision, 1 unresolved discussion. automotive/trajectory_agent.h, line 41 at r4 (raw file): Previously, sherm1 (Michael Sherman) wrote…
Done. Comments from Reviewable |
@drake-jenkins-bot linux-xenial-clang-bazel-experimental-cache please |
Toward #8529.
This change is