Alessio Quaglino
372aa021d0
Add copy constructor and assignment to mjCModel.
...
PiperOrigin-RevId: 616850780
Change-Id: I7fedab2efa2a90fd7ce952eac4e195f77c5ff5bc
2024-03-18 09:25:27 -07:00
Nimrod Gileadi
de918a8b2d
Small cosmetic fixes to MakeBVH.
...
Remove the index member of BVElement, since it's redundant for the purpose of sorting. BVElement is now 32 bytes instead of 40, which should make things a bit better, as this data gets moved around during MakeBVH. Unfortunately, this has no measurable effect on the benchmark.
PiperOrigin-RevId: 616806520
Change-Id: I3b8a28c42a4a21dc25985e63ac57764fdb669afa
2024-03-18 06:19:33 -07:00
Alessio Quaglino
acaf86a96f
Fix input array size in mju_mulMatMat3.
...
PiperOrigin-RevId: 616802192
Change-Id: I4dbc07d392b23a7014331ab850b685c1b82d3dcf
2024-03-18 06:00:45 -07:00
Yuval Tassa
8afcfd0fa1
Add custom elements to testdata/model.xml
...
PiperOrigin-RevId: 616752352
Change-Id: Iaaee19657e97f4962d9a2fe6e7671f3ce832264a
2024-03-18 01:58:52 -07:00
Yuval Tassa
dd2580e546
Add internal functions for 3x3 matmul.
...
PiperOrigin-RevId: 616749614
Change-Id: I7f3ac2ffc826076b6c97424324f03ecd9ccd4655
2024-03-18 01:44:10 -07:00
Copybara-Service
398fd108b4
Merge pull request #1508 from Balint-H:fix/limit-auto-parsing
...
PiperOrigin-RevId: 616680348
Change-Id: I55edeec1d522ab6f04514747b3c4ad5dfb2cd45f
2024-03-17 18:39:26 -07:00
Baruch Tabanpour
e95159b4f6
Small fix to mjx tutorial.
...
PiperOrigin-RevId: 616235636
Change-Id: I38675c032bdca8f26ab0550896928d097ee86653
2024-03-15 14:00:28 -07:00
Kyle Bayes
74d3d8cb4e
Cache OBJ files in MuJoCo compiler.
...
PiperOrigin-RevId: 616211896
Change-Id: I3b765f4529957914e6154f0e62ef36fd9df93c96
2024-03-15 12:32:06 -07:00
Yuval Tassa
bf66801bc9
Move printing of model BVH data to the end, make it more compact.
...
PiperOrigin-RevId: 616186922
Change-Id: Id6368a5efd831698f182fe97251b9608312c663c
2024-03-15 11:10:15 -07:00
Nimrod Gileadi
c5aa22b177
Speed up MakeBVH.
...
1. Avoid creating unnecessary temporary vectors for the left and right sides of the recursive call, since std::nth_element already splits the array in the right way.
2. Filter contype and conaffinity before calling MakeBVH. This only affects the top level of the MakeBVH recursion.
3. Avoid repeatedly computing mju_rotVecQuat for each element at each nesting level.
This is roughly a 2x speedup.
PiperOrigin-RevId: 616152673
Change-Id: I6ce7d99cd4a923c43156beb3f2493c649602260e
2024-03-15 09:24:40 -07:00
Kyle Bayes
c7a8b104f9
Add modified callback for VFS resource provider.
...
PiperOrigin-RevId: 616152275
Change-Id: I417f9b204eaa1eb9fc68a15927f86031dcd20575
2024-03-15 09:23:29 -07:00
Kyle Bayes
c42868a91b
Update logic for OS filesystem timestamps for caching.
...
PiperOrigin-RevId: 616138153
Change-Id: I0ce966546bc4af04e57b983e27bbd75a94377237
2024-03-15 08:31:56 -07:00
Yuval Tassa
a23cb4d22c
Cite Vaxenburg et al. in fluid force documentation.
...
PiperOrigin-RevId: 616114884
Change-Id: I0e7db61820c6ece118dee6871b8a526fdb79fb02
2024-03-15 06:57:49 -07:00
Kyle Bayes
9fef77193f
Fix V -> B typo in lookup table for encoding Base64.
...
PiperOrigin-RevId: 615968363
Change-Id: I1dae697462afcae48442610b1fe4acab93b6d62d
2024-03-14 18:29:21 -07:00
Baruch Tabanpour
2386353b02
Throw an error for margin/gap with meshes.
...
PiperOrigin-RevId: 615937263
Change-Id: I3289cf1b1fec93385cc78a01e53866427453db59
2024-03-14 16:21:05 -07:00
Erik Frey
02c62c118c
Fix bug where treedef for mjx.make_data doesn't match mjx.put_data.
...
PiperOrigin-RevId: 615928973
Change-Id: I08af97ac0300b9d51c1f4b46d48dde98d24197fa
2024-03-14 15:51:15 -07:00
Baruch Tabanpour
e5811ce2b4
Further improve edge contact for capsule-convex.
...
PiperOrigin-RevId: 615900645
Change-Id: I7fd495b10b7b3121da7aa5ed15cde413d916bc84
2024-03-14 14:15:44 -07:00
Baruch Tabanpour
f818a16ae4
Fix the bugfix for capsule-convex collisions.
...
PiperOrigin-RevId: 615809115
Change-Id: I183336630a76a9ada5b0730559b49779dd94f8e5
2024-03-14 09:41:33 -07:00
Balint-H
c2bef232b6
Handle the implicit auto value for limits now written by the compiler to the xml
2024-03-14 12:38:56 +00:00
Yuval Tassa
069708a599
Fix link to least-squares tutorial in the README.
...
PiperOrigin-RevId: 615604395
Change-Id: If19e7d3eefb4b17b60d328aa3a62e48b8c92b227
2024-03-13 18:05:28 -07:00
Baruch Tabanpour
f2e107f7aa
Fix deep penetration for sphere/capsule-convex.
...
PiperOrigin-RevId: 615539264
Change-Id: I6a5aac0574ddcb39bae8aafaf63f9561ca69288b
2024-03-13 14:12:42 -07:00
Yuval Tassa
adc4b92c1b
Document nonlinear least-squares tutorial.
...
PiperOrigin-RevId: 615496587
Change-Id: I97975a4dc99a599afd1eb6964d0ca0cf3d9fcc0e
2024-03-13 11:56:42 -07:00
Alessio Quaglino
bda03af49a
Add childclass support to frames.
...
PiperOrigin-RevId: 615487831
Change-Id: I0e4d2efd52211701b4286a0b0de84424470a3a47
2024-03-13 11:31:22 -07:00
Kyle Bayes
0d16587135
Don't read from file until mju_readResource is called.
...
PiperOrigin-RevId: 615434757
Change-Id: I96a1e77f74203e91bc62dc24ac9225810fcacb20
2024-03-13 08:55:54 -07:00
Yuval Tassa
40baa51072
Add tutorial notebook for mujoco.minimize module.
...
PiperOrigin-RevId: 615410341
Change-Id: If9748ab56fb04e5203024327e2422a3737d2aab8
2024-03-13 07:34:36 -07:00
Alessio Quaglino
693e3c66c8
Add copy constructors and assignments to user_objects.
...
All of the constructors and assignments operators are declared by this CL, but only those that are currently used are implemented here.
PiperOrigin-RevId: 615369559
Change-Id: I9f8cc4a7cd2070362baba04f2af4c5567a696596
2024-03-13 04:50:05 -07:00
Yuval Tassa
e42f9c6490
Tweaks to basic tutorial notebook.
...
PiperOrigin-RevId: 615368113
Change-Id: I888b252c75a1f6253dc78494e8348d00e8283ed7
2024-03-13 04:42:45 -07:00
Yuval Tassa
b61a09aa95
Delete redundant blank lines.
...
PiperOrigin-RevId: 615359482
Change-Id: If1f850d560938b0c8cf6dd13c83ed72d1faae4cc
2024-03-13 04:03:30 -07:00
Kevin Zakka
c4562ac61b
Cleanup asset/mesh in XML doc.
...
PiperOrigin-RevId: 615156721
Change-Id: Ia2a6051506f9b3f4f2d7919893381f40f3e037df
2024-03-12 13:40:40 -07:00
Yuval Tassa
1fb3ab26f0
Tweaks to LQR tutorial notebook:
...
- Unify all imports in one cell.
- Make final motion more interesting by adding more noise to joints which are not critical to balancing.
PiperOrigin-RevId: 615100505
Change-Id: I8302e441b3ca52d5134c317a35f99c5f74bac36b
2024-03-12 10:52:34 -07:00
Alessio Quaglino
c418139fec
Add copy constructor to mjCBody.
...
PiperOrigin-RevId: 615050891
Change-Id: I420e19a0444e93e5ec99da10f5cc20b429802d3e
2024-03-12 08:33:35 -07:00
Alexis Fraudita
a2a770453e
Copybara import of the project:
...
--
1fcff13dfdc70519c4d33e17ade4be6afb2960a2 by Alexis <cuatroalejandro@gmail.com >:
add multipleBodies test for mj_loadXML
--
34270fa57946e68a82fa55313b64a5a56e5aa080 by Alexis <cuatroalejandro@gmail.com >:
add some space
--
3594020eb9be57cb6a2eef0baeca97cee8f25aab by Alexis <cuatroalejandro@gmail.com >:
remove TODO comment in xml_api_test
COPYBARA_INTEGRATE_REVIEW=https://github.com/google-deepmind/mujoco/pull/1487 from alefram:alexis-test 3594020eb9be57cb6a2eef0baeca97cee8f25aab
PiperOrigin-RevId: 615033458
Change-Id: I05fe5659b07b3226b82d2562e31bcd73f150b089
2024-03-12 07:31:11 -07:00
Alessio Quaglino
93cbdaee07
Move mjC objects attributes to parent classes in user_objects.
...
This is in preparation of adding copy constructors for all of the objects.
PiperOrigin-RevId: 615014168
Change-Id: I24801d71d74dd6756167a6c438f9573825a396b5
2024-03-12 06:06:51 -07:00
Silvio Traversaro
d90d57609e
Copybara import of the project:
...
--
4883e8aacd531d8dbc3551ba7cb4e3b4694dda1e by Silvio Traversaro <silvio@traversaro.it >:
Fix plugin related comment in simulate
The comment was outdated after https://github.com/google-deepmind/mujoco/commit/2ebc5f097b1a5fbbe276250ad1d13966510d1291 .
COPYBARA_INTEGRATE_REVIEW=https://github.com/google-deepmind/mujoco/pull/1499 from traversaro:patch-37 4883e8aacd531d8dbc3551ba7cb4e3b4694dda1e
PiperOrigin-RevId: 615005350
Change-Id: I93d746f996de25b871cc1bc5651308d44382feef
2024-03-12 05:33:33 -07:00
Baruch Tabanpour
a49f3f63fc
Remove disable_jit in test.
...
PiperOrigin-RevId: 614824680
Change-Id: I15f1441dfb1a70b98e5a221c0e15b06572860748
2024-03-11 16:03:40 -07:00
Alessio Quaglino
8413a615d7
Add copy constructors to body subelements.
...
PiperOrigin-RevId: 614665384
Change-Id: I1ad2b644cf9816fb9490b5634c16e95f360a8684
2024-03-11 08:00:10 -07:00
Yuval Tassa
b1a941db8b
Add special handling for perturbations applied to static bodies.
...
These bodies have `body_invweight0 == 0` (infinite mass) and no degrees of freedom (identically 0 Jacobians). This was breaking some assumptions of the perturbation code which assumed perturbation applied only to moving bodies and led to very large forces/torques being applied. While these huge forces had no effect on the dynamics, they were reported by sensors, leading to unreasonable sensor readings.
PiperOrigin-RevId: 614398354
Change-Id: If5efe1c9e57e2be28af33d109679db8b3129da7f
2024-03-10 05:34:55 -07:00
Copybara-Service
2ba80206ab
Merge pull request #1479 from jmargeta:fix-record-command-docs
...
PiperOrigin-RevId: 613927858
Change-Id: I8fe30db8677811c98ed4f881b51a0f430d93dd3b
2024-03-08 07:29:57 -08:00
Alessio Quaglino
655e3d0914
Renamed Model to Spec in C API function names.
...
PiperOrigin-RevId: 613922860
Change-Id: Ic47a83aa33b57ef96bd742088442e6237282ee92
2024-03-08 07:05:44 -08:00
Yuval Tassa
b97110967f
Add Performance Tuning section.
...
Fixes #1471 .
PiperOrigin-RevId: 613867065
Change-Id: I947284300709e0fd6633068d9690a4b19812141f
2024-03-08 02:31:07 -08:00
Alessio Quaglino
ef3cb7ec2e
Renamed mjmModel to mjSpec.
...
PiperOrigin-RevId: 613516063
Change-Id: I09e360d3eba2accba2e260ec4754b0879b12892f
2024-03-07 02:48:32 -08:00
Baruch Tabanpour
22cd96fbbc
Speed up convex-convex collisions.
...
PiperOrigin-RevId: 613450874
Change-Id: Ie66e0a078e2ff51a136b949dd9459847e1fe957d
2024-03-06 21:48:51 -08:00
Jan Margeta
32dc89b425
Rename depthoverlay to adddepth
2024-03-06 21:17:43 +01:00
Jan Margeta
f287372467
Add url to relevant offscreen buffer attributes
2024-03-06 19:46:51 +01:00
Jan Margeta
548177d46c
Rename depthoverlay argument
2024-03-06 19:14:32 +01:00
Jan Margeta
39edea3a6c
Add an explicit note on recording resolution
2024-03-06 19:01:25 +01:00
Jan Margeta
be68f90190
Make depth overlay in video recording optional
...
Add docs for the record arguments
2024-03-06 18:47:14 +01:00
Jan Margeta
fe2215384b
Update docs on the video recordings's resolution
...
This fixes the the ffmpeg command to correspond to the default humanoid.xml resolution (2560x1440).
2024-03-06 18:47:14 +01:00
Meghha Dhoke
106453fa2b
Updated version number to be (v3.1.4) ahead of current release (v3.1.3)
...
PiperOrigin-RevId: 613236845
Change-Id: I3ee759493f27cfa1e367c71e3e073b54738b73d4
2024-03-06 09:07:25 -08:00
Alessio Quaglino
9ac048e262
Add recompilation test to user_api_test.
...
PiperOrigin-RevId: 613192683
Change-Id: Ibb44e1c2d63ac0afb7b5f3a15dff26378deb6c82
2024-03-06 06:27:28 -08:00