Add mjmBody and mjmPlugin and their compiler C APIs.
PiperOrigin-RevId: 604937231 Change-Id: Ib8a2105ce6c0500d6a610258b46f192d9e73169d
This commit is contained in:
committed by
Copybara-Service
parent
b9c50ad79c
commit
a3e49d582e
@@ -18,7 +18,6 @@
|
||||
#include <gmock/gmock.h>
|
||||
#include <gtest/gtest.h>
|
||||
#include "src/user/user_api.h"
|
||||
#include <mujoco/mjmodel.h>
|
||||
#include "test/fixture.h"
|
||||
|
||||
namespace mujoco {
|
||||
@@ -31,8 +30,8 @@ using ::testing::HasSubstr;
|
||||
|
||||
TEST_F(MujocoTest, ReadWriteData) {
|
||||
void* model = mjm_createModel();
|
||||
void* world = mjm_findObject(model, mjOBJ_BODY, "world");
|
||||
void* body = mjm_addBody(world, 0);
|
||||
mjmBody* world = mjm_findBody(model, "world");
|
||||
mjmBody* body = mjm_addBody(world, 0);
|
||||
mjmSite* site = mjm_addSite(body, 0);
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user