Support nested frames in mjs_attachFrame.

PiperOrigin-RevId: 626001651
Change-Id: I3dc52baa6aad875504dd4c7d969a4091f52c4c16
This commit is contained in:
Alessio Quaglino
2024-04-18 05:35:54 -07:00
committed by Copybara-Service
parent d2392efe6c
commit c331d18a6e
3 changed files with 40 additions and 17 deletions
+2
View File
@@ -362,6 +362,8 @@ class mjCFrame : public mjCFrame_, private mjsFrame {
mjCFrame& operator+=(const mjCBody& other);
bool IsAncestor(const mjCFrame* child) const; // true if child is contained in this frame
private:
mjCFrame(mjCModel* = 0, mjCFrame* = 0); // constructor
mjCFrame(const mjCFrame& other); // copy constructor