Skip to content

Conversation

Meow404
Copy link

@Meow404 Meow404 commented Jun 23, 2025

@Meow404 Meow404 linked an issue Jun 23, 2025 that may be closed by this pull request
@Meow404 Meow404 force-pushed the stephen/example-plate-balancing branch 9 times, most recently from d4f321a to fe05cec Compare June 26, 2025 00:44
@juanmed
Copy link

juanmed commented Jul 9, 2025

Hi. Thanks for open sourcing your impressive work. I am working on this branch to reproduce the plate-balancing work, and was wondering if you accept fixes here? These are just a few missing dependencies juanmed@3d90389

@Meow404
Copy link
Author

Meow404 commented Jul 9, 2025

Hi. Thanks for open sourcing your impressive work. I am working on this branch to reproduce the plate-balancing work, and was wondering if you accept fixes here? These are just a few missing dependencies juanmed@3d90389

Hi, Yes we accept fixes. Feel free to file bugs if you find any.

I think you find the .yaml files for the plate balancing are included in this branch,. You should take a look at https://github.com/DAIRLab/c3 for our work related to C3 and https://github.com/DAIRLab/dairlib/tree/sampling_based_c3_PR2_copy I believe has the latest work for sampling based C3.

@Meow404 Meow404 force-pushed the stephen/example-plate-balancing branch 3 times, most recently from d50a4b4 to 80568f2 Compare July 9, 2025 18:02
@Meow404 Meow404 requested a review from xuanhien070594 July 9, 2025 18:03
@Meow404 Meow404 marked this pull request as ready for review July 9, 2025 18:03
@Meow404 Meow404 changed the title [WIP] example(plate-balancing) : Add working plate balancing example with external c3 repo example(plate-balancing) : Add working plate balancing example with external c3 repo Jul 9, 2025
@Meow404 Meow404 force-pushed the stephen/example-plate-balancing branch from 80568f2 to 41d8eed Compare July 12, 2025 16:10
@Meow404 Meow404 changed the base branch from main to sampling_based_c3_public July 12, 2025 16:11
@Meow404 Meow404 force-pushed the stephen/example-plate-balancing branch 2 times, most recently from 268e67c to 9571fcd Compare July 14, 2025 13:52
@Meow404 Meow404 marked this pull request as draft July 16, 2025 20:55
@Meow404 Meow404 force-pushed the stephen/example-plate-balancing branch from d88901a to 5a72ca5 Compare July 24, 2025 15:38
* Integrate new C3 algorithm

* Tune new C3 parameters

* Fix bug that wrongly computes the size of z and delta vectors.

* Remove unnecessary use of epsilon in new c3 projection step; update logging script to accept folder path as argument and modify log directory creation; add progress parameters YAML file for new c3

* Add log directory to .gitignore to prevent logging files from being tracked

* Minor changes

* Add documentation and address comments

* Refactor C3 solver structure:
- Introduce BaseC3 class, replace C3 with BaseC3 in related files.
- Enhances modularity and maintainability of all functions in BaseC3 class.
- Change name of C3NextGen class to C3Plus

* Update C3 solver implementation:
- Modify BaseC3 constructor to accept a function for calculating z size.
- Adjust C3Plus to disable parallelization and utilize the new z size calculation function.
- Clean up .gitignore by removing the logs directory entry.
- Improve documentation in C3Plus header for clarity on C3+ formulation.

* Clean up codes

* Replace all NEXTGEN name by C3+

* Minor changes

* Add C3+ parameters to jacktoy and push-anything examples

* Add missing placeholders in sampling_c3_options.yaml of push-anything example

* Change class name BaseC3 to C3Base

* Remove unnecessary small functions and remove obsolete SolveRobustSingleProjection functions

* Modify C3Base constructor to accept z_size and add overloaded constructor for default z_size.

* Use fully vectorized code in c3plus projection step

* Throw error if any weights of the cost matrix U are negative.
@Meow404 Meow404 force-pushed the stephen/example-plate-balancing branch from 5a72ca5 to 6a81a2d Compare August 15, 2025 16:56
@Meow404 Meow404 changed the base branch from sampling_based_c3_public to stephen/add_c3_repo_for_sampling_c3 August 15, 2025 16:57
@Meow404 Meow404 force-pushed the stephen/add_c3_repo_for_sampling_c3 branch from 30ff460 to 9e969e1 Compare August 19, 2025 20:37
@Meow404 Meow404 force-pushed the stephen/example-plate-balancing branch from 6a81a2d to a922a8f Compare August 26, 2025 17:58
@juanmed
Copy link

juanmed commented Aug 27, 2025

@Meow404 Hi, I was trying out your work in this branch, looks awesome. As of the latest commit here, this is the behavior I get and was wondering if your get the same?

slide-tray-2025-08-28_01.58.40.mp4

Asking because I expected the robot arm to 1) slide the tray out of the supports, 2) lift the tray and 3) slide the tray again onto the supports, but seems to do only 1) and 2).

@Meow404
Copy link
Author

Meow404 commented Aug 27, 2025

@Meow404 Hi, I was trying out your work in this branch, looks awesome. As of the latest commit here, this is the behavior I get and was wondering if your get the same?

slide-tray-2025-08-28_01.58.40.mp4
Asking because I expected the robot arm to 1) slide the tray out of the supports, 2) lift the tray and 3) slide the tray again onto the supports, but seems to do only 1) and 2).

Hi @juanmed, Nice to hear from you. We are discovering that the example does work a little differently based on your computer specs. I've tried the same example on three different computers with different results, but this can be overcome by tuning the parameters a little in this file examples/plate-balancing/config/C3/controller-c3plus-options/2_supports.yaml. You would want to start by trying to modify w_[Q/R/G] first, then maybe try g_lambda, g_eta. Let us know if you need any help.

@juanmed
Copy link

juanmed commented Aug 27, 2025

@Meow404 Aha that makes sense, will play with the params there. Thanks for the advice!

(Btw I had to focus on some background work before retaking plate balancing again)

@Meow404 Meow404 force-pushed the stephen/add_c3_repo_for_sampling_c3 branch from 9e969e1 to 99cb601 Compare October 3, 2025 20:07
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.

Plate-balancing example

4 participants