Fix typos

This commit is contained in:
Kristian Hartikainen
2023-04-04 19:58:43 +01:00
parent 5f132af625
commit a611b7bf6d
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -428,8 +428,8 @@ MjModelWrapper MjModelWrapper::LoadXML(
namespace { namespace {
// A byte at the start of serialized mjModel structs, which can be incremented // A byte at the start of serialized mjModel structs, which can be incremented
// when we change the serialization logic to reject pickles from an // when we change the serialization logic to reject pickles from an unsupported
// unsupported future version. // future version.
constexpr static char kSerializationVersion = 1; constexpr static char kSerializationVersion = 1;
void CheckInput(const std::istream& input, std::string class_name) { void CheckInput(const std::istream& input, std::string class_name) {
+3 -3
View File
@@ -174,8 +174,8 @@ class BuildCMakeExtension(build_ext.build_ext):
f'{MUJOCO_PLUGIN_PATH} environment variable is not set') f'{MUJOCO_PLUGIN_PATH} environment variable is not set')
library_path = None library_path = None
include_path = None include_path = None
plugin_path = os.environ['MUJOCO_PLUGIN_PATH'] plugin_path = os.environ[MUJOCO_PLUGIN_PATH]
for directory, subdirs, filenames in os.walk(os.environ['MUJOCO_PATH']): for directory, subdirs, filenames in os.walk(os.environ[MUJOCO_PATH]):
if self._is_apple and 'mujoco.framework' in subdirs: if self._is_apple and 'mujoco.framework' in subdirs:
return (os.path.join(directory, 'mujoco.framework/Versions/A'), return (os.path.join(directory, 'mujoco.framework/Versions/A'),
os.path.join(directory, 'mujoco.framework/Headers'), os.path.join(directory, 'mujoco.framework/Headers'),
@@ -191,7 +191,7 @@ class BuildCMakeExtension(build_ext.build_ext):
def _copy_external_libraries(self): def _copy_external_libraries(self):
dst = os.path.dirname(self.get_ext_fullpath(self.extensions[0].name)) dst = os.path.dirname(self.get_ext_fullpath(self.extensions[0].name))
for directory, _, filenames in os.walk(os.environ['MUJOCO_PATH']): for directory, _, filenames in os.walk(os.environ[MUJOCO_PATH]):
for pattern in get_external_lib_patterns(): for pattern in get_external_lib_patterns():
for filename in fnmatch.filter(filenames, pattern): for filename in fnmatch.filter(filenames, pattern):
shutil.copyfile(os.path.join(directory, filename), shutil.copyfile(os.path.join(directory, filename),
+1 -1
View File
@@ -481,7 +481,7 @@ int mjCModel::NumObjects(mjtObj type) {
// get poiner to specified object // get pointer to specified object
mjCBase* mjCModel::GetObject(mjtObj type, int id) { mjCBase* mjCModel::GetObject(mjtObj type, int id) {
if (id>=0 && id<NumObjects(type)) { if (id>=0 && id<NumObjects(type)) {
switch (type) { switch (type) {