-
Notifications
You must be signed in to change notification settings - Fork 45
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
Merge my project: Real time iLQR control and SysID code into main branch #76
base: master
Are you sure you want to change the base?
Conversation
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 broadly looks good. I have a couple of comments about the naming of functions, and comments we need to add to explain things. There's a test or two I'd like to setup to run on CI to check for future regressions, and a few stray files I don't think you meant to commit. I also think it might be good to add some tests for all the getContactFreeXXXJacobian()
and getContactReducedXXXJacobian()
methods, comparing those to finite differencing, just to ensure we don't ship methods that are false advertising, and to prevent other students from breaking your code in later projects.
.Trash-0/info/default-28703f89-662b-4003-bb24-09d7ac96a9a6.ipynb.trashinfo
Outdated
Show resolved
Hide resolved
.Trash-0/files/default-28703f89-662b-4003-bb24-09d7ac96a9a6.ipynb
Outdated
Show resolved
Hide resolved
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.
Let's get the CARTPOLE_ILQR test back in the test_iLQRHalfCheetah
(unless you moved that test to another file and I missed it), and then I think we're good to merge.
@@ -41,195 +40,6 @@ using namespace realtime; | |||
using namespace trajectory; | |||
using namespace server; | |||
|
|||
#ifdef iLQR_TEST |
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, I didn't mean to delete this test! I just meant to uncomment it. I think it'd be good to run this test at every commit.
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 test is identical to test_iLQR, and the rest of Half cheetah set up should be classified as an example. Therefore, I delete the test case to remove duplication. Sorry for the confusion.
{ | ||
final_cost = simulate_traj(ilqr.getStatesFromiLQRBuffer(), ilqr.getActionsFromiLQRBuffer(), true); | ||
} | ||
std::cout << "Final Cost: " << final_cost << std::endl; |
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 put a EXPECT_TRUE(final_cost < some_value);
here, where you replace some_value
with a number that makes the test barely pass.
@@ -224,5 +185,6 @@ TEST(REALTIME, CARTPOLE_ILQR) | |||
final_cost = simulate_traj(ilqr.getStatesFromiLQRBuffer(), ilqr.getActionsFromiLQRBuffer(), true); | |||
} | |||
std::cout << "Final Cost: " << final_cost << std::endl; | |||
EXPECT_TRUE(final_cost < 5); |
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.
Excellent!
No description provided.