Skip to content

Commit

Permalink
Change to latest main. Prepare to 2.2.1 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliu committed Jul 20, 2022
1 parent 268f122 commit 2cebccb
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"repositoryURL": "https://github.com/liuliu/mujoco.git",
"state": {
"branch": null,
"revision": "00b459c00453de1494552e687d1fb4adc3de1b56",
"revision": "04fdacb29a04f96c826d5d289ca61d035a3a7f8b",
"version": null
}
},
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import PackageDescription
var dependencies: [Package.Dependency] = [
.package(
name: "C_mujoco", url: "https://github.com/liuliu/mujoco.git",
.revision("00b459c00453de1494552e687d1fb4adc3de1b56")),
.revision("04fdacb29a04f96c826d5d289ca61d035a3a7f8b")),
.package(url: "https://github.com/apple/swift-numerics", from: "1.0.0"),
]

Expand Down
2 changes: 1 addition & 1 deletion Sources/MjModel+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1579,7 +1579,7 @@ extension MjModel {
unsafeMutablePointer.assign(from: newValue._array, count: Int(nmesh * 1))
}
}
/// vertex positions for all meshe (nmeshvert x 3)
/// vertex positions for all meshes (nmeshvert x 3)
@inlinable
public var meshVert: MjArray<Float> {
get { MjArray<Float>(array: _model.pointee.mesh_vert, object: _storage, len: nmeshvert * 3) }
Expand Down
3 changes: 3 additions & 0 deletions Sources/Mjt.swift
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,7 @@ public enum MjtSensor: Int32, CustomStringConvertible {
case subtreecom
case subtreelinvel
case subtreeangmom
case clock
case user
public var description: String {
switch self {
Expand Down Expand Up @@ -739,6 +740,8 @@ public enum MjtSensor: Int32, CustomStringConvertible {
return "subtreelinvel"
case .subtreeangmom:
return "subtreeangmom"
case .clock:
return "clock"
case .user:
return "user"
}
Expand Down
4 changes: 2 additions & 2 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ new_git_repository(
new_git_repository(
name = "mujoco",
build_file = "mujoco.BUILD",
commit = "d3a86bb748b272951185a24570f49ceccf07f4e7",
commit = "fa1536c2de47ede4dfa184a9139ed7217424ad99",
remote = "https://github.com/deepmind/mujoco.git",
shallow_since = "1657012681 -0700",
shallow_since = "1658255253 -0700",
)

# Other helper functions
Expand Down
4 changes: 2 additions & 2 deletions deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def swift_mujoco_deps():
new_git_repository,
name = "mujoco",
build_file = "@swift-mujoco//:external/mujoco.BUILD",
commit = "d3a86bb748b272951185a24570f49ceccf07f4e7",
commit = "fa1536c2de47ede4dfa184a9139ed7217424ad99",
remote = "https://github.com/deepmind/mujoco.git",
shallow_since = "1657012681 -0700",
shallow_since = "1658255253 -0700",
)

0 comments on commit 2cebccb

Please sign in to comment.