feat(model): add xiaozhao MuJoCo model and joint limit tooling
Add the pedestal-free xiaozhao URDF, mesh assets, and separate MuJoCo robot, environment, and position-actuator XML files. Align joint frames, rotation directions, inertial transforms, and limits with the calibrated URDF, including the mirrored right hand, and retain the original SolidWorks URDF export. Add a model-selectable CSV limit updater with unit conversion, validation, dry-run support, and rollback on write failures. Synchronize the calibration CSV, document the workflow, add regression tests, and ignore export logs. Validation: 14 joint-limit tests passed; all joint and actuator ranges agree with the URDF. Kinematics and inertial checks passed, along with a 3000-step MuJoCo 3.3.7 simulation and desktop scene loading.
This commit is contained in:
parent
8d88108336
commit
aabc5a9fef
82
model/README.md
Normal file
82
model/README.md
Normal file
@ -0,0 +1,82 @@
|
||||
# 模型工具
|
||||
|
||||
## 从 CSV 同步关节限位
|
||||
|
||||
脚本为 `model/update_joint_limits.py`,使用 `--模型目录名` 选择模型。
|
||||
例如 `--xiaozhao` 选择脚本旁边的 `xiaozhao/`,自动使用:
|
||||
|
||||
```text
|
||||
model/
|
||||
├── update_joint_limits.py
|
||||
└── xiaozhao/
|
||||
├── config/joint_limits.csv
|
||||
├── urdf/xiaozhao.urdf
|
||||
└── xml/
|
||||
├── xiaozhao.xml
|
||||
├── actuators.xml
|
||||
├── environment.xml
|
||||
└── scene.xml
|
||||
```
|
||||
|
||||
其他目录按同样规则使用 `--目录名`;URDF 和机器人 XML 的文件名默认与目录名一致。
|
||||
文件命名不同时可以用下面的路径参数覆盖。一次必须选择且只能选择一个模型;
|
||||
缺少配置或目标文件时会报错,不会改动其他模型。
|
||||
|
||||
|
||||
只需要 Python 3.10+ 标准库,无需安装 MuJoCo。编辑
|
||||
`model/xiaozhao/config/joint_limits.csv`,然后执行:
|
||||
|
||||
```bash
|
||||
# 先查看差异,不写文件
|
||||
python3 model/update_joint_limits.py --xiaozhao --dry-run
|
||||
|
||||
# 应用 CSV 中的限位
|
||||
python3 model/update_joint_limits.py --xiaozhao
|
||||
```
|
||||
|
||||
默认同步以下三处:
|
||||
|
||||
- `model/xiaozhao/urdf/xiaozhao.urdf` 的 `limit lower/upper`
|
||||
- `model/xiaozhao/xml/xiaozhao.xml` 的关节 `range`
|
||||
- `model/xiaozhao/xml/actuators.xml` 的位置执行器 `ctrlrange`
|
||||
|
||||
CSV 已填入当前 14 个关节的限位。`unit` 为 `rad`(弧度)或 `deg`(角度),
|
||||
可以逐行选择;省略整个 `unit` 列时按弧度处理。例如,把某个关节改为 ±90°:
|
||||
|
||||
```csv
|
||||
joint_name,lower,upper,unit
|
||||
joint2-left,-90,90,deg
|
||||
```
|
||||
|
||||
可以只列出需要修改的关节,其余保持原值。上下限是相对于该关节 URDF `axis`
|
||||
方向的有符号角度,不按左右手自动反转。必须满足 `lower < upper`;若要固定关节,
|
||||
应单独修改关节类型,不能把上下限设为同一个值。
|
||||
|
||||
加载其他 CSV 或指定目标文件:
|
||||
|
||||
```bash
|
||||
python3 model/update_joint_limits.py --xiaozhao \
|
||||
--csv model/xiaozhao/config/joint_limits.csv \
|
||||
--urdf model/xiaozhao/urdf/xiaozhao.urdf \
|
||||
--mjcf model/xiaozhao/xml/xiaozhao.xml \
|
||||
--actuators model/xiaozhao/xml/actuators.xml
|
||||
```
|
||||
|
||||
也支持 SolidWorks 导出 CSV 的 `Joint Name`、`Limit Lower`、`Limit Upper` 列,
|
||||
按弧度读取,跳过无关节名的根链接行。SolidWorks 格式 CSV 和另一份原始 URDF 不会由限位脚本自动修改。
|
||||
当前 SolidWorks 格式 CSV 的关节坐标、轴向、限位及链接原点已按 `xiaozhao.urdf` 同步。
|
||||
该格式每个链接仅记录一组 visual/collision,右手额外的镜像手掌几何仍以当前 URDF/XML 为准;
|
||||
另一份原始 URDF 保留为历史导出。
|
||||
目标 MJCF 必须是包含关节定义的机器人文件,不是仅含 `include` 的 `scene.xml`。
|
||||
当前工具适用于 `revolute`/`hinge` 关节和 `gear=1` 的位置执行器;不更改速度、力矩、
|
||||
增益或碰撞设置,也不递归修改 MJCF include 文件。
|
||||
为防止写入的范围未实际启用,若目标文件的默认类设置了 `limited="false"` 或
|
||||
`ctrllimited="false"`,工具会拒绝更新(即使该默认类暂未使用)。
|
||||
|
||||
脚本先验证整份输入及三个目标,再写入;未知或重复关节、非法单位、非有限数值、
|
||||
缺失目标等都会报错。只替换对应属性值,保留注释、排版、换行和文件权限。
|
||||
URDF 始终写弧度,MJCF `range` 跟随其 `compiler angle`,执行器控制范围写弧度。
|
||||
模型目录相对于脚本所在的 `model/` 文件夹解析,因此从其他工作目录运行也可以。
|
||||
|
||||
应用后在 MuJoCo 中按 **Ctrl+L** 重新加载 `model/xiaozhao/xml/scene.xml`,
|
||||
新的限位和控制滑块范围才会生效;脚本不会自动操作当前仿真窗口。
|
||||
314
model/update_joint_limits.py
Normal file
314
model/update_joint_limits.py
Normal file
@ -0,0 +1,314 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Synchronize CSV angular limits into URDF, MJCF joints and position servos."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import csv
|
||||
from dataclasses import dataclass, field
|
||||
import math
|
||||
import os
|
||||
from pathlib import Path
|
||||
import re
|
||||
import stat
|
||||
import sys
|
||||
import tempfile
|
||||
from xml.parsers import expat
|
||||
|
||||
|
||||
MODELS_DIR = Path(__file__).resolve().parent
|
||||
ATTRIBUTE = re.compile(rb'''([\w:.-]+)\s*=\s*(["'])(.*?)\2''', re.DOTALL)
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class Limits:
|
||||
name: str
|
||||
lower: float
|
||||
upper: float
|
||||
|
||||
|
||||
def read_limits(path: Path) -> list[Limits]:
|
||||
"""Read a compact CSV or a SolidWorks URDF exporter CSV as radians."""
|
||||
with path.open(encoding="utf-8-sig", newline="") as stream:
|
||||
rows = csv.reader(stream, strict=True)
|
||||
headers = [value.strip() for value in next(rows, [])]
|
||||
if len(set(headers)) != len(headers):
|
||||
raise ValueError("CSV contains duplicate column names")
|
||||
solidworks = {"Joint Name", "Limit Lower", "Limit Upper"}.issubset(headers)
|
||||
if solidworks:
|
||||
name_key, lower_key, upper_key = "Joint Name", "Limit Lower", "Limit Upper"
|
||||
else:
|
||||
required = {"joint_name", "lower", "upper"}
|
||||
if not required.issubset(headers) or set(headers) - required - {"unit"}:
|
||||
raise ValueError("CSV headers must be joint_name,lower,upper,unit (unit is optional)")
|
||||
name_key, lower_key, upper_key = "joint_name", "lower", "upper"
|
||||
result = []
|
||||
seen = set()
|
||||
for values in rows:
|
||||
if not values or not any(value.strip() for value in values):
|
||||
continue
|
||||
if len(values) != len(headers):
|
||||
raise ValueError(f"CSV line {rows.line_num}: expected {len(headers)} columns")
|
||||
row = dict(zip(headers, (value.strip() for value in values)))
|
||||
name = row[name_key]
|
||||
if solidworks and not name: # The root link has no incoming joint.
|
||||
continue
|
||||
if not name or name in seen:
|
||||
raise ValueError(f"CSV line {rows.line_num}: empty or duplicate joint name {name!r}")
|
||||
unit = "rad" if solidworks else row.get("unit", "rad")
|
||||
if unit not in {"rad", "deg"}:
|
||||
raise ValueError(f"CSV line {rows.line_num}: unit must be rad or deg")
|
||||
try:
|
||||
lower, upper = float(row[lower_key]), float(row[upper_key])
|
||||
except ValueError as error:
|
||||
raise ValueError(f"CSV line {rows.line_num}: invalid limits for {name}") from error
|
||||
if not (math.isfinite(lower) and math.isfinite(upper) and lower < upper):
|
||||
raise ValueError(f"CSV line {rows.line_num}: {name} needs finite lower < upper")
|
||||
if unit == "deg":
|
||||
lower, upper = math.radians(lower), math.radians(upper)
|
||||
result.append(Limits(name, lower, upper))
|
||||
seen.add(name)
|
||||
if not result:
|
||||
raise ValueError("CSV contains no joint limits")
|
||||
return result
|
||||
|
||||
|
||||
@dataclass
|
||||
class Node:
|
||||
tag: str
|
||||
attrs: dict[str, str]
|
||||
start: int
|
||||
end: int
|
||||
parents: tuple[str, ...]
|
||||
children: list[Node] = field(default_factory=list)
|
||||
|
||||
|
||||
class XmlFile:
|
||||
"""Parse XML but edit only attribute bytes, preserving comments and newlines."""
|
||||
|
||||
def __init__(self, path: Path, expected_root: str):
|
||||
self.path = path.resolve(strict=True)
|
||||
self.before = self.path.read_bytes()
|
||||
self.nodes: list[Node] = []
|
||||
self.edits: list[tuple[int, int, bytes]] = []
|
||||
stack: list[Node] = []
|
||||
parser = expat.ParserCreate()
|
||||
|
||||
def start(tag: str, attrs: dict[str, str]) -> None:
|
||||
begin = parser.CurrentByteIndex
|
||||
end, quote = begin, None
|
||||
while end < len(self.before):
|
||||
char = self.before[end]
|
||||
if quote is not None:
|
||||
if char == quote:
|
||||
quote = None
|
||||
elif char in (34, 39):
|
||||
quote = char
|
||||
elif char == 62: # > outside a quoted attribute
|
||||
break
|
||||
end += 1
|
||||
node = Node(tag, attrs, begin, end + 1, tuple(n.tag for n in stack))
|
||||
if stack:
|
||||
stack[-1].children.append(node)
|
||||
stack.append(node)
|
||||
self.nodes.append(node)
|
||||
|
||||
def reject_doctype(*_args: object) -> None:
|
||||
raise ValueError(f"{self.path}: DTD/entity declarations are not supported")
|
||||
|
||||
parser.StartElementHandler = start
|
||||
parser.EndElementHandler = lambda _tag: stack.pop()
|
||||
parser.StartDoctypeDeclHandler = reject_doctype
|
||||
parser.Parse(self.before, True)
|
||||
if self.nodes[0].tag != expected_root:
|
||||
raise ValueError(f"{self.path}: expected <{expected_root}> root")
|
||||
|
||||
def set_numbers(self, node: Node, attribute: str, values: tuple[float, ...]) -> bool:
|
||||
if not all(math.isfinite(value) for value in values):
|
||||
raise ValueError(f"{self.path}: non-finite {attribute} after unit conversion")
|
||||
original = node.attrs.get(attribute)
|
||||
if original is None:
|
||||
raise ValueError(f"{self.path}: <{node.tag}> is missing {attribute}")
|
||||
old = tuple(float(value) for value in original.split())
|
||||
if len(old) != len(values) or not all(math.isfinite(value) for value in old):
|
||||
raise ValueError(f"{self.path}: invalid {attribute}={original!r}")
|
||||
if all(math.isclose(a, b, rel_tol=1e-14, abs_tol=1e-15) for a, b in zip(old, values)):
|
||||
return False
|
||||
for match in ATTRIBUTE.finditer(self.before[node.start:node.end]):
|
||||
if match[1].decode("utf-8") == attribute:
|
||||
value = " ".join(format(number if number else 0.0, ".15g") for number in values)
|
||||
self.edits.append((node.start + match.start(3), node.start + match.end(3), value.encode()))
|
||||
return True
|
||||
raise ValueError(f"{self.path}: cannot locate attribute {attribute}")
|
||||
|
||||
def after(self) -> bytes:
|
||||
content = self.before
|
||||
for start, end, value in sorted(self.edits, reverse=True):
|
||||
content = content[:start] + value + content[end:]
|
||||
return content
|
||||
|
||||
|
||||
def one(nodes: list[Node], description: str) -> Node:
|
||||
if len(nodes) != 1:
|
||||
raise ValueError(f"{description}: expected one match, found {len(nodes)}")
|
||||
return nodes[0]
|
||||
|
||||
|
||||
def prepare(limits: list[Limits], urdf: XmlFile, mjcf: XmlFile, actuators: XmlFile) -> list[str]:
|
||||
if len({document.path for document in (urdf, mjcf, actuators)}) != 3:
|
||||
raise ValueError("URDF, MJCF and actuator paths must be three separate files")
|
||||
compilers = [node for node in mjcf.nodes if node.tag == "compiler" and node.parents == ("mujoco",)]
|
||||
angle = "degree"
|
||||
for compiler in compilers:
|
||||
angle = compiler.attrs.get("angle", angle)
|
||||
if angle not in {"radian", "degree"}:
|
||||
raise ValueError(f"Unsupported MJCF compiler angle: {angle}")
|
||||
# This script does not resolve a complete MJCF default/include hierarchy.
|
||||
# Reject disabled-limit defaults conservatively, including unused classes,
|
||||
# rather than reporting success with a range that MuJoCo will not enforce.
|
||||
for document in (mjcf, actuators):
|
||||
for node in document.nodes:
|
||||
if "default" in node.parents:
|
||||
for flag in ("limited", "ctrllimited"):
|
||||
if node.attrs.get(flag) == "false":
|
||||
raise ValueError(f"{document.path}: default {flag}=false is not supported")
|
||||
# Scalar position servos in this workflow use gear=1, so ctrl is radians.
|
||||
# Reject non-unit gears even in defaults rather than silently writing wrong ranges.
|
||||
for node in actuators.nodes:
|
||||
if "gear" in node.attrs:
|
||||
gear = node.attrs["gear"].split()
|
||||
if not gear or float(gear[0]) != 1.0:
|
||||
raise ValueError("Only gear=1 position actuators are supported")
|
||||
report = []
|
||||
for limit in limits:
|
||||
joint = one([n for n in urdf.nodes if n.tag == "joint" and n.parents == ("robot",)
|
||||
and n.attrs.get("name") == limit.name], f"URDF joint {limit.name}")
|
||||
if joint.attrs.get("type") != "revolute":
|
||||
raise ValueError(f"{limit.name}: only revolute URDF joints are supported")
|
||||
urdf_limit = one([n for n in joint.children if n.tag == "limit"], f"{limit.name} URDF limit")
|
||||
mj_joint = one([n for n in mjcf.nodes if n.tag == "joint" and "worldbody" in n.parents
|
||||
and n.attrs.get("name") == limit.name], f"MJCF joint {limit.name}")
|
||||
if mj_joint.attrs.get("type", "hinge") != "hinge":
|
||||
raise ValueError(f"{limit.name}: only hinge MJCF joints are supported")
|
||||
if mj_joint.attrs.get("limited") == "false":
|
||||
raise ValueError(f"{limit.name}: MJCF joint has limited=false")
|
||||
servo = one([n for n in actuators.nodes if n.tag == "position" and n.parents[-1:] == ("actuator",)
|
||||
and n.attrs.get("joint") == limit.name], f"Position actuator for {limit.name}")
|
||||
if servo.attrs.get("ctrllimited") == "false":
|
||||
raise ValueError(f"{limit.name}: actuator has ctrllimited=false")
|
||||
radians = (limit.lower, limit.upper)
|
||||
mj_range = tuple(math.degrees(value) for value in radians) if angle == "degree" else radians
|
||||
changed = []
|
||||
lower_changed = urdf.set_numbers(urdf_limit, "lower", (limit.lower,))
|
||||
upper_changed = urdf.set_numbers(urdf_limit, "upper", (limit.upper,))
|
||||
if lower_changed or upper_changed:
|
||||
changed.append(f"URDF [{urdf_limit.attrs['lower']}, {urdf_limit.attrs['upper']}]")
|
||||
if mjcf.set_numbers(mj_joint, "range", mj_range):
|
||||
changed.append(f"MJCF [{mj_joint.attrs['range']}] ({angle})")
|
||||
if actuators.set_numbers(servo, "ctrlrange", radians):
|
||||
changed.append(f"actuator [{servo.attrs['ctrlrange']}]")
|
||||
if changed:
|
||||
report.append(f"{limit.name}: {', '.join(changed)} -> [{limit.lower:.15g}, {limit.upper:.15g}] rad")
|
||||
return report
|
||||
|
||||
|
||||
def stage(path: Path, content: bytes, mode: int) -> Path:
|
||||
"""Stage next to the destination so replacement is atomic on its filesystem."""
|
||||
fd, name = tempfile.mkstemp(prefix=f".{path.name}.", suffix=".tmp", dir=path.parent)
|
||||
temporary = Path(name)
|
||||
try:
|
||||
with os.fdopen(fd, "wb") as stream:
|
||||
stream.write(content)
|
||||
stream.flush()
|
||||
os.fsync(stream.fileno())
|
||||
temporary.chmod(mode)
|
||||
return temporary
|
||||
except BaseException:
|
||||
temporary.unlink(missing_ok=True)
|
||||
raise
|
||||
|
||||
|
||||
def write_files(documents: list[XmlFile]) -> None:
|
||||
"""Validate everything first; roll back completed replacements on write failure."""
|
||||
pending = []
|
||||
committed = []
|
||||
retained_backups: set[Path] = set()
|
||||
try:
|
||||
for document in documents:
|
||||
if not document.edits:
|
||||
continue
|
||||
if document.path.read_bytes() != document.before:
|
||||
raise ValueError(f"File changed while preparing update: {document.path}")
|
||||
mode = stat.S_IMODE(document.path.stat().st_mode)
|
||||
new = stage(document.path, document.after(), mode)
|
||||
pending.append((document, new, None))
|
||||
backup = stage(document.path, document.before, mode)
|
||||
pending[-1] = (document, new, backup)
|
||||
for document, new, backup in pending:
|
||||
if document.path.read_bytes() != document.before:
|
||||
raise ValueError(f"File changed while preparing update: {document.path}")
|
||||
os.replace(new, document.path)
|
||||
committed.append((document, backup))
|
||||
except BaseException as error:
|
||||
for document, backup in reversed(committed):
|
||||
try:
|
||||
os.replace(backup, document.path)
|
||||
except OSError:
|
||||
retained_backups.add(backup)
|
||||
if retained_backups:
|
||||
locations = ", ".join(str(path) for path in sorted(retained_backups))
|
||||
raise OSError(f"Update failed ({error}); rollback incomplete. Original backups retained: {locations}") from error
|
||||
raise
|
||||
finally:
|
||||
for _document, new, backup in pending:
|
||||
new.unlink(missing_ok=True)
|
||||
if backup is not None and backup not in retained_backups:
|
||||
backup.unlink(missing_ok=True)
|
||||
|
||||
|
||||
def main(argv: list[str] | None = None) -> int:
|
||||
parser = argparse.ArgumentParser(
|
||||
description=__doc__, allow_abbrev=False,
|
||||
epilog="Example: python3 model/update_joint_limits.py --xiaozhao --dry-run",
|
||||
)
|
||||
selectors = parser.add_mutually_exclusive_group(required=True)
|
||||
reserved = {"help", "csv", "urdf", "mjcf", "xml", "actuators", "dry-run"}
|
||||
for folder in sorted(MODELS_DIR.iterdir()):
|
||||
if (folder.is_dir() and not folder.name.startswith((".", "__"))
|
||||
and folder.name not in reserved):
|
||||
selectors.add_argument(
|
||||
f"--{folder.name}", dest="model_name", action="store_const", const=folder.name,
|
||||
help=f"read {folder.name}/config/joint_limits.csv and update this model",
|
||||
)
|
||||
parser.add_argument("--csv", type=Path, help="override <model>/config/joint_limits.csv")
|
||||
parser.add_argument("--urdf", type=Path, help="override <model>/urdf/<model>.urdf")
|
||||
parser.add_argument("--mjcf", "--xml", type=Path, help="override <model>/xml/<model>.xml (not scene.xml)")
|
||||
parser.add_argument("--actuators", type=Path, help="override <model>/xml/actuators.xml")
|
||||
parser.add_argument("--dry-run", action="store_true", help="show changes without writing any files")
|
||||
args = parser.parse_args(argv)
|
||||
model_dir = MODELS_DIR / args.model_name
|
||||
try:
|
||||
limits = read_limits(args.csv or model_dir / "config/joint_limits.csv")
|
||||
documents = [
|
||||
XmlFile(args.urdf or model_dir / f"urdf/{args.model_name}.urdf", "robot"),
|
||||
XmlFile(args.mjcf or model_dir / f"xml/{args.model_name}.xml", "mujoco"),
|
||||
XmlFile(args.actuators or model_dir / "xml/actuators.xml", "mujoco"),
|
||||
]
|
||||
report = prepare(limits, *documents)
|
||||
for line in report:
|
||||
print(line)
|
||||
if args.dry_run:
|
||||
print(f"Dry run: {len(limits)} joints checked, {len(report)} changed; no files written.")
|
||||
elif report:
|
||||
write_files(documents)
|
||||
print(f"Updated {len(report)} joints in {sum(bool(doc.edits) for doc in documents)} files.")
|
||||
else:
|
||||
print(f"No changes needed ({len(limits)} joints checked).")
|
||||
return 0
|
||||
except (ValueError, OSError, UnicodeError, csv.Error, expat.ExpatError) as error:
|
||||
print(f"Error: {error}", file=sys.stderr)
|
||||
return 2
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
2
model/xiaozhao/.gitignore
vendored
Normal file
2
model/xiaozhao/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
# Generated SolidWorks export diagnostics.
|
||||
/export.log
|
||||
14
model/xiaozhao/CMakeLists.txt
Normal file
14
model/xiaozhao/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
cmake_minimum_required(VERSION 2.8.3)
|
||||
|
||||
project(00 0930Body-urdf4.SLDASM)
|
||||
|
||||
find_package(catkin REQUIRED)
|
||||
|
||||
catkin_package()
|
||||
|
||||
find_package(roslaunch)
|
||||
|
||||
foreach(dir config launch meshes urdf)
|
||||
install(DIRECTORY ${dir}/
|
||||
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/${dir})
|
||||
endforeach(dir)
|
||||
15
model/xiaozhao/config/joint_limits.csv
Normal file
15
model/xiaozhao/config/joint_limits.csv
Normal file
@ -0,0 +1,15 @@
|
||||
joint_name,lower,upper,unit
|
||||
joint1-left,-3.14,3.14,rad
|
||||
joint2-left,-1.57,1.57,rad
|
||||
joint3-left,-3.14,3.14,rad
|
||||
joint4-left,-2.355,0,rad
|
||||
joint5-left,-3.14,3.14,rad
|
||||
joint6-left,-0.785,0.45,rad
|
||||
joint7-left,-1.05,1.05,rad
|
||||
joint1-right,-3.14,3.14,rad
|
||||
joint2-right,-1.57,1.57,rad
|
||||
joint3-right,-3.14,3.14,rad
|
||||
joint4-right,0,2.355,rad
|
||||
joint5-right,-3.14,3.14,rad
|
||||
joint6-right,-0.45,0.785,rad
|
||||
joint7-right,-1.05,1.05,rad
|
||||
|
@ -0,0 +1 @@
|
||||
controller_joint_names: ['', 'joint1-left', 'joint2-left', 'joint3-left', 'joint4-left', 'joint5-left', 'joint6-left', 'joint7-left', 'joint1-right', 'joint2-right', 'joint3-right', 'joint4-right', 'joint5-right', 'joint6-right', 'joint7-right', ]
|
||||
20
model/xiaozhao/launch/display.launch
Normal file
20
model/xiaozhao/launch/display.launch
Normal file
@ -0,0 +1,20 @@
|
||||
<launch>
|
||||
<arg
|
||||
name="model" />
|
||||
<param
|
||||
name="robot_description"
|
||||
textfile="$(find 00 0930Body-urdf4.SLDASM)/urdf/xiaozhao.urdf" />
|
||||
<node
|
||||
name="joint_state_publisher_gui"
|
||||
pkg="joint_state_publisher_gui"
|
||||
type="joint_state_publisher_gui" />
|
||||
<node
|
||||
name="robot_state_publisher"
|
||||
pkg="robot_state_publisher"
|
||||
type="robot_state_publisher" />
|
||||
<node
|
||||
name="rviz"
|
||||
pkg="rviz"
|
||||
type="rviz"
|
||||
args="-d $(find 00 0930Body-urdf4.SLDASM)/urdf.rviz" />
|
||||
</launch>
|
||||
20
model/xiaozhao/launch/gazebo.launch
Normal file
20
model/xiaozhao/launch/gazebo.launch
Normal file
@ -0,0 +1,20 @@
|
||||
<launch>
|
||||
<include
|
||||
file="$(find gazebo_ros)/launch/empty_world.launch" />
|
||||
<node
|
||||
name="tf_footprint_base"
|
||||
pkg="tf"
|
||||
type="static_transform_publisher"
|
||||
args="0 0 0 0 0 0 base_link base_footprint 40" />
|
||||
<node
|
||||
name="spawn_model"
|
||||
pkg="gazebo_ros"
|
||||
type="spawn_model"
|
||||
args="-file $(find 00 0930Body-urdf4.SLDASM)/urdf/xiaozhao.urdf -urdf -model 00 0930Body-urdf4.SLDASM"
|
||||
output="screen" />
|
||||
<node
|
||||
name="fake_joint_calibration"
|
||||
pkg="rostopic"
|
||||
type="rostopic"
|
||||
args="pub /calibrated std_msgs/Bool true" />
|
||||
</launch>
|
||||
BIN
model/xiaozhao/meshes/base_link.STL
Normal file
BIN
model/xiaozhao/meshes/base_link.STL
Normal file
Binary file not shown.
1047716
model/xiaozhao/meshes/base_link.obj
Normal file
1047716
model/xiaozhao/meshes/base_link.obj
Normal file
File diff suppressed because it is too large
Load Diff
BIN
model/xiaozhao/meshes/hand-right-mirrored.STL
Normal file
BIN
model/xiaozhao/meshes/hand-right-mirrored.STL
Normal file
Binary file not shown.
399099
model/xiaozhao/meshes/hand-right-mirrored.obj
Normal file
399099
model/xiaozhao/meshes/hand-right-mirrored.obj
Normal file
File diff suppressed because it is too large
Load Diff
BIN
model/xiaozhao/meshes/link1-left.STL
Normal file
BIN
model/xiaozhao/meshes/link1-left.STL
Normal file
Binary file not shown.
BIN
model/xiaozhao/meshes/link1-right.STL
Normal file
BIN
model/xiaozhao/meshes/link1-right.STL
Normal file
Binary file not shown.
BIN
model/xiaozhao/meshes/link2-left.STL
Normal file
BIN
model/xiaozhao/meshes/link2-left.STL
Normal file
Binary file not shown.
BIN
model/xiaozhao/meshes/link2-right.STL
Normal file
BIN
model/xiaozhao/meshes/link2-right.STL
Normal file
Binary file not shown.
BIN
model/xiaozhao/meshes/link3-left.STL
Normal file
BIN
model/xiaozhao/meshes/link3-left.STL
Normal file
Binary file not shown.
BIN
model/xiaozhao/meshes/link3-right.STL
Normal file
BIN
model/xiaozhao/meshes/link3-right.STL
Normal file
Binary file not shown.
BIN
model/xiaozhao/meshes/link4-left.STL
Normal file
BIN
model/xiaozhao/meshes/link4-left.STL
Normal file
Binary file not shown.
BIN
model/xiaozhao/meshes/link4-right.STL
Normal file
BIN
model/xiaozhao/meshes/link4-right.STL
Normal file
Binary file not shown.
BIN
model/xiaozhao/meshes/link5-left.STL
Normal file
BIN
model/xiaozhao/meshes/link5-left.STL
Normal file
Binary file not shown.
BIN
model/xiaozhao/meshes/link5-right.STL
Normal file
BIN
model/xiaozhao/meshes/link5-right.STL
Normal file
Binary file not shown.
BIN
model/xiaozhao/meshes/link6-left.STL
Normal file
BIN
model/xiaozhao/meshes/link6-left.STL
Normal file
Binary file not shown.
BIN
model/xiaozhao/meshes/link6-right.STL
Normal file
BIN
model/xiaozhao/meshes/link6-right.STL
Normal file
Binary file not shown.
BIN
model/xiaozhao/meshes/link7-left.STL
Normal file
BIN
model/xiaozhao/meshes/link7-left.STL
Normal file
Binary file not shown.
404611
model/xiaozhao/meshes/link7-left.obj
Normal file
404611
model/xiaozhao/meshes/link7-left.obj
Normal file
File diff suppressed because it is too large
Load Diff
BIN
model/xiaozhao/meshes/link7-right.STL
Normal file
BIN
model/xiaozhao/meshes/link7-right.STL
Normal file
Binary file not shown.
21
model/xiaozhao/package.xml
Normal file
21
model/xiaozhao/package.xml
Normal file
@ -0,0 +1,21 @@
|
||||
<package format="2">
|
||||
<name>00 0930Body-urdf4.SLDASM</name>
|
||||
<version>1.0.0</version>
|
||||
<description>
|
||||
<p>URDF Description package for 00 0930Body-urdf4.SLDASM</p>
|
||||
<p>This package contains configuration data, 3D models and launch files
|
||||
for 00 0930Body-urdf4.SLDASM robot</p>
|
||||
</description>
|
||||
<author>TODO</author>
|
||||
<maintainer email="TODO@email.com" />
|
||||
<license>BSD</license>
|
||||
<buildtool_depend>catkin</buildtool_depend>
|
||||
<depend>roslaunch</depend>
|
||||
<depend>robot_state_publisher</depend>
|
||||
<depend>rviz</depend>
|
||||
<depend>joint_state_publisher_gui</depend>
|
||||
<depend>gazebo</depend>
|
||||
<export>
|
||||
<architecture_independent />
|
||||
</export>
|
||||
</package>
|
||||
16
model/xiaozhao/urdf/00 0930Body-urdf4.SLDASM.csv
Normal file
16
model/xiaozhao/urdf/00 0930Body-urdf4.SLDASM.csv
Normal file
@ -0,0 +1,16 @@
|
||||
Link Name,Center of Mass X,Center of Mass Y,Center of Mass Z,Center of Mass Roll,Center of Mass Pitch,Center of Mass Yaw,Mass,Moment Ixx,Moment Ixy,Moment Ixz,Moment Iyy,Moment Iyz,Moment Izz,Visual X,Visual Y,Visual Z,Visual Roll,Visual Pitch,Visual Yaw,Mesh Filename,Color Red,Color Green,Color Blue,Color Alpha,Collision X,Collision Y,Collision Z,Collision Roll,Collision Pitch,Collision Yaw,Collision Mesh Filename,Material Name,SW Components,Coordinate System,Axis Name,Joint Name,Joint Type,Joint Origin X,Joint Origin Y,Joint Origin Z,Joint Origin Roll,Joint Origin Pitch,Joint Origin Yaw,Parent,Joint Axis X,Joint Axis Y,Joint Axis Z,Limit Effort,Limit Velocity,Limit Lower,Limit Upper,Calibration rising,Calibration falling,Dynamics Damping,Dynamics Friction,Safety Soft Upper,Safety Soft Lower,Safety K Position,Safety K Velocity
|
||||
base_link,-1.19384910205036E-06,0.0158820586330755,0.0601572634202883,0,0,0,12.0939193087609,0.0771992576048866,-4.71603477080102E-07,-1.48909012424014E-07,0.110011609259562,-0.00671136747575047,0.130299609920884,0,0,0,0,0,0,package://00 0930Body-urdf4.SLDASM/meshes/base_link.STL,0.752941176470588,0.752941176470588,0.752941176470588,1,0,0,0,0,0,0,package://00 0930Body-urdf4.SLDASM/meshes/base_link.STL,,OC-55A_X_CD_X_E2_X_D0_X_CE_X_CA_X_BE_X_D2_X_E2 _1_-1;同川20法兰-1;同川20法兰-2;上侧板V2-右-1;冷排风扇-1;中间板V2-1;底板V2-2;下后盖板-1;前盖板-1;水泵固定板-1;03 支撑固定板V2-1;02 头部旋转模组-MG 6010-1;高擎电池HTB-48-02(48V)-2;电池侧板-1;电池装配体-New-1;高擎电池HTB-48-02(48V)-3;座舱底座-1;底部法兰2-1;01left-arm-urdf-1/TCHL-20-101-FL-DC48-B05-HISE-1;02right-arm-urdf-1/TCHL-20-101-FL-DC48-B05-HISE-1;冷排风扇-3;镜向上侧板V2-4;镜向电池侧板-2,base_坐标系,,,,0,0,0,0,0,0,,0,0,0,,,,,,,,,,,,
|
||||
link1-left,6.75324341598005E-05,-0.00414124893712335,0.0357014132791962,0,0,0,0.304090721433475,0.000245055173827115,-2.11027978489438E-07,9.11870207358669E-08,0.00042828640186093,-3.16718145546335E-06,0.000350389449270938,0,0,0,0,0,0,package://00 0930Body-urdf4.SLDASM/meshes/link1-left.STL,0.898039215686275,0.917647058823529,0.929411764705882,1,0,0,0,0,0,0,package://00 0930Body-urdf4.SLDASM/meshes/link1-left.STL,,01left-arm-urdf-1/01 J1 Output Connector-1;01left-arm-urdf-1/TCHL-20-101-FL-DC48-B05-HISE-2;01left-arm-urdf-1/03 J2 Output Limit Block-1,坐标系1-left,基准轴1-left,joint1-left,revolute,0.1478,0.0405,0.441,0,1.5708,0,base_link,0,0,1,0,0,-3.14,3.14,,,,,,,,
|
||||
link2-left,7.25060001084687E-05,0.0807829812620638,-0.0422541168775343,-3.14159265358979,0,0,0.238735801407796,0.000233070980658983,1.78430707346592E-07,-1.10102013961508E-07,0.000172880087203634,1.98817891913915E-05,0.000249700712948652,0,0,0,-3.14159265358979,0,0,package://00 0930Body-urdf4.SLDASM/meshes/link2-left.STL,0.898039215686275,0.917647058823529,0.929411764705882,1,0,0,0,-3.14159265358979,0,0,package://00 0930Body-urdf4.SLDASM/meshes/link2-left.STL,,01left-arm-urdf-1/02 J2 Output Connector-1;01left-arm-urdf-1/04 J2 Rear Support Bearing Connector-1;01left-arm-urdf-1/05 Bearing_6706ZZ-1;01left-arm-urdf-1/TCHL-17-101-FL-DC48-B05-HISE-TH2-1,坐标系2-left,基准轴2-left,joint2-left,revolute,0,-0.04975,0.053,1.57079265358979,0,0,link1-left,0,0,1,0,0,-1.57,1.57,,,,,,,,
|
||||
link3-left,0.000612207603460563,0.00229659018905651,0.0517902912984107,0,0,0,0.206576313767245,0.000106807122863566,1.3686406496755E-08,-9.39521625510296E-07,0.000211842956357412,-5.34315488439938E-06,0.000188701328569606,0,0,0,0,0,0,package://00 0930Body-urdf4.SLDASM/meshes/link3-left.STL,0.898039215686275,0.917647058823529,0.929411764705882,1,0,0,0,0,0,0,package://00 0930Body-urdf4.SLDASM/meshes/link3-left.STL,,01left-arm-urdf-1/06 J3 Output Connector-1;01left-arm-urdf-1/07 J4 Joint Fixing Bracket-1;01left-arm-urdf-1/TCHL-17-101-FL-DC48-X05-HISE-TH2-1;01left-arm-urdf-1/08 J4 Joint Output Limit Block-1,坐标系3-left,基准轴3-left,joint3-left,revolute,0,0.1575,-0.04975,-1.57079265358979,0,0,link2-left,0,0,1,0,0,-3.14,3.14,,,,,,,,
|
||||
link4-left,0.000268740390489769,0.0373908800531662,-0.0359490477915483,0,0,0,0.0803293338116679,0.000106626468821837,-2.31152323845664E-10,6.45631718028383E-08,1.58918187475175E-05,-9.54676249280788E-07,0.000120588702228947,0,0,0,0,0,0,package://00 0930Body-urdf4.SLDASM/meshes/link4-left.STL,0.898039215686275,0.917647058823529,0.929411764705882,1,0,0,0,0,0,0,package://00 0930Body-urdf4.SLDASM/meshes/link4-left.STL,,01left-arm-urdf-1/10 J4 Joint Output Connector-1;01left-arm-urdf-1/09 J4 Joint Rear Support Bearing Fixing Bracket-1;01left-arm-urdf-1/05 Bearing_6706ZZ-2;01left-arm-urdf-1/TCHL-14-101-FL-DC48-X05-HISE-TM2-1,坐标系4-left,基准轴4-left,joint4-left,revolute,0,-0.04125,0.0945,1.5708,0,0,link3-left,0,0,1,0,0,-2.355,0,,,,,,,,
|
||||
link5-left,-0.00064770787776916,0.00811977664913954,0.0418779781048378,0,0,0,0.171115687396794,0.000110604944142724,-4.13537904185603E-07,3.02142205581103E-06,0.000175689959913363,-1.13002104132245E-06,8.46587908656625E-05,0,0,0,0,0,0,package://00 0930Body-urdf4.SLDASM/meshes/link5-left.STL,0.898039215686275,0.917647058823529,0.929411764705882,1,0,0,0,0,0,0,package://00 0930Body-urdf4.SLDASM/meshes/link5-left.STL,,01left-arm-urdf-1/Modified-J5-J6 Connector-1;01left-arm-urdf-1/12 J6 Left Fixing Bracket-Right-1;01left-arm-urdf-1/14 J6 Output Flange-1;01left-arm-urdf-1/TCHL-14-101-FL-DC48-X05-HISE-TM2-2;01left-arm-urdf-1/18 J7 Support Bearing (Deep Groove Ball)-2;01left-arm-urdf-1/13 J6 Right Fixing Bracket-1;01left-arm-urdf-1/17 J7 Support Bearing Seat-1,坐标系5-left,基准轴5-left,joint5-left,revolute,0,0.1315,-0.04125,-1.5708,0,0,link4-left,0,0,1,0,0,-3.14,3.14,,,,,,,,
|
||||
link6-left,0.0160147732367327,0.000660038957990938,-0.0380434793705672,-3.14159265358979,0,0,0.0326968497975282,2.67125153002924E-05,-1.34580437208919E-11,5.06790755246012E-07,3.04838493405727E-05,6.45171446902217E-08,6.26296697174092E-06,0,0,0,-3.14159265358979,0,0,package://00 0930Body-urdf4.SLDASM/meshes/link6-left.STL,0.898039215686275,0.917647058823529,0.929411764705882,1,0,0,0,-3.14159265358979,0,0,package://00 0930Body-urdf4.SLDASM/meshes/link6-left.STL,,01left-arm-urdf-1/16 J7 Fixing Bracket-1;01left-arm-urdf-1/TCHL-14-101-FL-DC48-X05-HISE-TM2-3,坐标系6-left,基准轴6-left,joint6-left,revolute,0,-0.0369,0.1145,1.57079265358979,0,0,link5-left,0,0,1,0,0,-0.785,0.45,,,,,,,,
|
||||
link7-left,0.00178604570829378,0.0813605007818323,-0.0221116181447386,0,0,0,0.0935116969865748,5.06673735014526E-05,-2.71420525306304E-07,1.46838383946241E-08,3.0989237776473E-05,1.23593328732233E-05,5.31215311149928E-05,0,0,0,0,0,0,package://00 0930Body-urdf4.SLDASM/meshes/link7-left.STL,1,1,1,1,0,0,0,0,0,0,package://00 0930Body-urdf4.SLDASM/meshes/link7-left.STL,,01left-arm-urdf-1/20 hand-1;01left-arm-urdf-1/19 J7Output Connector V2-1,坐标系7-left,基准轴7-left,joint7-left,revolute,-0.037,0,-0.0369,7.34641020683213e-06,-1.5708,0,link6-left,0,0,1,0,0,-1.05,1.05,,,,,,,,
|
||||
link1-right,0.00186094851680057,-6.57027673802435E-05,0.0370126157045176,0,0,0,0.286348053119183,0.000422547329511247,-2.35462474504554E-07,2.72544434270392E-06,0.000244327585311168,9.11871120787603E-08,0.000344505354022551,0,0,0,0,0,0,package://00 0930Body-urdf4.SLDASM/meshes/link1-right.STL,0.898039215686275,0.917647058823529,0.929411764705882,1,0,0,0,0,0,0,package://00 0930Body-urdf4.SLDASM/meshes/link1-right.STL,,02right-arm-urdf-1/01 J1 Output Connector-1;02right-arm-urdf-1/TCHL-20-101-FL-DC48-B05-HISE-2,坐标系1,基准轴1,joint1-right,revolute,-0.1478,0.0405,0.441,1.5708,0,-1.5708,base_link,0,0,1,0,0,-3.14,3.14,,,,,,,,
|
||||
link2-right,7.27312859680473E-05,-0.0807829812704791,-0.0425927065933143,0,0,0,0.238735801407796,0.000233070980658933,1.78543084939719E-07,-1.10102016012101E-07,0.000172880087203568,-2.00130653105994E-05,0.000249700712948636,0,0,0,0,0,0,package://00 0930Body-urdf4.SLDASM/meshes/link2-right.STL,0.898039215686275,0.917647058823529,0.929411764705882,1,0,0,0,0,0,0,package://00 0930Body-urdf4.SLDASM/meshes/link2-right.STL,,02right-arm-urdf-1/02 J2 Output Connector-1;02right-arm-urdf-1/04 J2 Rear Support Bearing Connector-1;02right-arm-urdf-1/05 Bearing_6706ZZ-1;02right-arm-urdf-1/TCHL-17-101-FL-DC48-B05-HISE-TH2-1,坐标系2,基准轴2,joint2-right,revolute,0.04975,0,0.053,-1.5708,0,-1.5708,link1-right,0,0,1,0,0,-1.57,1.57,,,,,,,,
|
||||
link3-right,-0.00460138616057136,0.000426610219036727,0.0434471351805352,0,0,0,0.194030047437472,0.000208755273065386,9.19066905598572E-11,5.3068688461369E-06,0.00010579532895932,2.40971986387619E-07,0.000186285169356577,0,0,0,0,0,0,package://00 0930Body-urdf4.SLDASM/meshes/link3-right.STL,0.898039215686275,0.917647058823529,0.929411764705882,1,0,0,0,0,0,0,package://00 0930Body-urdf4.SLDASM/meshes/link3-right.STL,,02right-arm-urdf-1/06 J3 Output Connector-1;02right-arm-urdf-1/07 J4 Joint Fixing Bracket-1;02right-arm-urdf-1/TCHL-17-101-FL-DC48-X05-HISE-TH2-1,坐标系3,基准轴3,joint3-right,revolute,0,-0.164,-0.04975,1.5708,-1.5708,0,link2-right,0,0,1,0,0,-3.14,3.14,,,,,,,,
|
||||
link4-right,0.000268622682690761,-0.0373908249854035,-0.0354483066519652,0,0,0,0.0803291784530421,0.000106626439664163,-2.08649766890664E-10,-6.4569389547017E-08,1.5891801109711E-05,9.54668799732348E-07,0.000120588654971646,0,0,0,0,0,0,package://00 0930Body-urdf4.SLDASM/meshes/link4-right.STL,0.898039215686275,0.917647058823529,0.929411764705882,1,0,0,0,0,0,0,package://00 0930Body-urdf4.SLDASM/meshes/link4-right.STL,,02right-arm-urdf-1/10 J4 Joint Output Connector-1;02right-arm-urdf-1/09 J4 Joint Rear Support Bearing Fixing Bracket-1;02right-arm-urdf-1/TCHL-14-101-FL-DC48-X05-HISE-TM2-1;02right-arm-urdf-1/05 Bearing_6706ZZ-2,坐标系4,基准轴4,joint4-right,revolute,0.04125,0,0.088,-1.5708,0,-1.5708,link3-right,0,0,1,0,0,0,2.355,,,,,,,,
|
||||
link5-right,-0.00811980437592285,0.000647652694718309,0.0416257106322934,0,0,0,0.17111560162694,0.000175689930428249,-4.13222163023912E-07,1.1300608500523E-06,0.000110604895479297,-2.66474916177748E-06,8.46587925468465E-05,0,0,0,0,0,0,package://00 0930Body-urdf4.SLDASM/meshes/link5-right.STL,0.898039215686275,0.917647058823529,0.929411764705882,1,0,0,0,0,0,0,package://00 0930Body-urdf4.SLDASM/meshes/link5-right.STL,,02right-arm-urdf-1/Modified-J5-J6 Connector-1;02right-arm-urdf-1/12 J6 Left Fixing Bracket-Left-1;02right-arm-urdf-1/14 J6 Output Flange-1;02right-arm-urdf-1/18 J7 Support Bearing (Deep Groove Ball)-2;02right-arm-urdf-1/TCHL-14-101-FL-DC48-X05-HISE-TM2-2;02right-arm-urdf-1/13 J6 Right Fixing Bracket-1;02right-arm-urdf-1/17 J7 Support Bearing Seat-1,坐标系5,基准轴5,joint5-right,revolute,0,-0.1315,-0.04125,1.5708,-1.5708,0,link4-right,0,0,1,0,0,-3.14,3.14,,,,,,,,
|
||||
link6-right,0.0160147732366216,-0.000660099421881388,-0.0368134594403946,0,0,0,0.0326968497975282,2.67125153002924E-05,1.34952551021368E-11,-5.0679067297724E-07,3.04838493405727E-05,6.4517144690801E-08,6.26296697174077E-06,0,0,0,0,0,0,package://00 0930Body-urdf4.SLDASM/meshes/link6-right.STL,0.898039215686275,0.917647058823529,0.929411764705882,1,0,0,0,0,0,0,package://00 0930Body-urdf4.SLDASM/meshes/link6-right.STL,,02right-arm-urdf-1/16 J7 Fixing Bracket-1;02right-arm-urdf-1/TCHL-14-101-FL-DC48-X05-HISE-TM2-3,坐标系6,基准轴6,joint6-right,revolute,0.0369,0,0.1145,-1.5708,0,-1.5708,link5-right,0,0,1,0,0,-0.45,0.785,,,,,,,,
|
||||
link7-right,-7.26286393318538E-06,0.025058851607589,0.0149290377499663,0,0,0,0.0419946886424074,3.12202177376165E-05,4.70222651242745E-09,1.00026929410169E-08,2.02239467874676E-05,-9.50264156124728E-06,2.91363049162484E-05,0,0,0,3.141592653589793,0,0,package://00 0930Body-urdf4.SLDASM/meshes/link7-right.STL,0.898039215686275,0.917647058823529,0.929411764705882,1,0,0,0,3.141592653589793,0,0,package://00 0930Body-urdf4.SLDASM/meshes/link7-right.STL,,02right-arm-urdf-1/19 J7Output Connector V2-2,坐标系7,基准轴7,joint7-right,revolute,-0.037,0,-0.0369,0,-1.5708,0,link6-right,0,0,1,0,0,-1.05,1.05,,,,,,,,
|
||||
|
859
model/xiaozhao/urdf/00 0930Body-urdf4.SLDASM.urdf
Normal file
859
model/xiaozhao/urdf/00 0930Body-urdf4.SLDASM.urdf
Normal file
@ -0,0 +1,859 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- This URDF was automatically created by SolidWorks to URDF Exporter! Originally created by Stephen Brawner (brawner@gmail.com)
|
||||
Commit Version: 1.6.0-4-g7f85cfe Build Version: 1.6.7995.38578
|
||||
For more information, please see http://wiki.ros.org/sw_urdf_exporter -->
|
||||
<robot
|
||||
name="00 0930Body-urdf4.SLDASM">
|
||||
<link
|
||||
name="base_link">
|
||||
<inertial>
|
||||
<origin
|
||||
xyz="-1.19384910205036E-06 0.0158820586330755 0.0601572634202883"
|
||||
rpy="0 0 0" />
|
||||
<mass
|
||||
value="12.0939193087609" />
|
||||
<inertia
|
||||
ixx="0.0771992576048866"
|
||||
ixy="-4.71603477080102E-07"
|
||||
ixz="-1.48909012424014E-07"
|
||||
iyy="0.110011609259562"
|
||||
iyz="-0.00671136747575047"
|
||||
izz="0.130299609920884" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://00 0930Body-urdf4.SLDASM/meshes/base_link.STL" />
|
||||
</geometry>
|
||||
<material
|
||||
name="">
|
||||
<color
|
||||
rgba="0.752941176470588 0.752941176470588 0.752941176470588 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://00 0930Body-urdf4.SLDASM/meshes/base_link.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<link
|
||||
name="link1-left">
|
||||
<inertial>
|
||||
<origin
|
||||
xyz="6.75324341598005E-05 -0.00414124893712335 0.0357014132791962"
|
||||
rpy="0 0 0" />
|
||||
<mass
|
||||
value="0.304090721433475" />
|
||||
<inertia
|
||||
ixx="0.000245055173827115"
|
||||
ixy="-2.11027978489438E-07"
|
||||
ixz="9.11870207358669E-08"
|
||||
iyy="0.00042828640186093"
|
||||
iyz="-3.16718145546335E-06"
|
||||
izz="0.000350389449270938" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://00 0930Body-urdf4.SLDASM/meshes/link1-left.STL" />
|
||||
</geometry>
|
||||
<material
|
||||
name="">
|
||||
<color
|
||||
rgba="0.898039215686275 0.917647058823529 0.929411764705882 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://00 0930Body-urdf4.SLDASM/meshes/link1-left.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint
|
||||
name="joint1-left"
|
||||
type="revolute">
|
||||
<origin
|
||||
xyz="0.1478 0.0405 0.441"
|
||||
rpy="0 1.5708 0" />
|
||||
<parent
|
||||
link="base_link" />
|
||||
<child
|
||||
link="link1-left" />
|
||||
<axis
|
||||
xyz="0 0 1" />
|
||||
<limit
|
||||
lower="-3.14"
|
||||
upper="3.14"
|
||||
effort="0"
|
||||
velocity="0" />
|
||||
</joint>
|
||||
<link
|
||||
name="link2-left">
|
||||
<inertial>
|
||||
<origin
|
||||
xyz="7.25060001084687E-05 -0.0807829812620638 0.0422541168775343"
|
||||
rpy="0 0 0" />
|
||||
<mass
|
||||
value="0.238735801407796" />
|
||||
<inertia
|
||||
ixx="0.000233070980658983"
|
||||
ixy="1.78430707346592E-07"
|
||||
ixz="-1.10102013961508E-07"
|
||||
iyy="0.000172880087203634"
|
||||
iyz="1.98817891913915E-05"
|
||||
izz="0.000249700712948652" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://00 0930Body-urdf4.SLDASM/meshes/link2-left.STL" />
|
||||
</geometry>
|
||||
<material
|
||||
name="">
|
||||
<color
|
||||
rgba="0.898039215686275 0.917647058823529 0.929411764705882 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://00 0930Body-urdf4.SLDASM/meshes/link2-left.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint
|
||||
name="joint2-left"
|
||||
type="revolute">
|
||||
<origin
|
||||
xyz="0 -0.04975 0.053"
|
||||
rpy="-1.5708 0 0" />
|
||||
<parent
|
||||
link="link1-left" />
|
||||
<child
|
||||
link="link2-left" />
|
||||
<axis
|
||||
xyz="0 0 -1" />
|
||||
<limit
|
||||
lower="-1.57"
|
||||
upper="1.57"
|
||||
effort="0"
|
||||
velocity="0" />
|
||||
</joint>
|
||||
<link
|
||||
name="link3-left">
|
||||
<inertial>
|
||||
<origin
|
||||
xyz="0.000612207603460563 0.00229659018905651 0.0517902912984107"
|
||||
rpy="0 0 0" />
|
||||
<mass
|
||||
value="0.206576313767245" />
|
||||
<inertia
|
||||
ixx="0.000106807122863566"
|
||||
ixy="1.3686406496755E-08"
|
||||
ixz="-9.39521625510296E-07"
|
||||
iyy="0.000211842956357412"
|
||||
iyz="-5.34315488439938E-06"
|
||||
izz="0.000188701328569606" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://00 0930Body-urdf4.SLDASM/meshes/link3-left.STL" />
|
||||
</geometry>
|
||||
<material
|
||||
name="">
|
||||
<color
|
||||
rgba="0.898039215686275 0.917647058823529 0.929411764705882 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://00 0930Body-urdf4.SLDASM/meshes/link3-left.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint
|
||||
name="joint3-left"
|
||||
type="revolute">
|
||||
<origin
|
||||
xyz="0 -0.1575 0.04975"
|
||||
rpy="1.5708 0 0" />
|
||||
<parent
|
||||
link="link2-left" />
|
||||
<child
|
||||
link="link3-left" />
|
||||
<axis
|
||||
xyz="0 0 1" />
|
||||
<limit
|
||||
lower="-3.14"
|
||||
upper="3.14"
|
||||
effort="0"
|
||||
velocity="0" />
|
||||
</joint>
|
||||
<link
|
||||
name="link4-left">
|
||||
<inertial>
|
||||
<origin
|
||||
xyz="0.000268740390489769 0.0373908800531662 -0.0359490477915483"
|
||||
rpy="0 0 0" />
|
||||
<mass
|
||||
value="0.0803293338116679" />
|
||||
<inertia
|
||||
ixx="0.000106626468821837"
|
||||
ixy="-2.31152323845664E-10"
|
||||
ixz="6.45631718028383E-08"
|
||||
iyy="1.58918187475175E-05"
|
||||
iyz="-9.54676249280788E-07"
|
||||
izz="0.000120588702228947" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://00 0930Body-urdf4.SLDASM/meshes/link4-left.STL" />
|
||||
</geometry>
|
||||
<material
|
||||
name="">
|
||||
<color
|
||||
rgba="0.898039215686275 0.917647058823529 0.929411764705882 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://00 0930Body-urdf4.SLDASM/meshes/link4-left.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint
|
||||
name="joint4-left"
|
||||
type="revolute">
|
||||
<origin
|
||||
xyz="0 -0.04125 0.0945"
|
||||
rpy="1.5708 0 0" />
|
||||
<parent
|
||||
link="link3-left" />
|
||||
<child
|
||||
link="link4-left" />
|
||||
<axis
|
||||
xyz="0 0 1" />
|
||||
<limit
|
||||
lower="0"
|
||||
upper="2.355"
|
||||
effort="0"
|
||||
velocity="0" />
|
||||
</joint>
|
||||
<link
|
||||
name="link5-left">
|
||||
<inertial>
|
||||
<origin
|
||||
xyz="-0.00064770787776916 0.00811977664913954 0.0418779781048378"
|
||||
rpy="0 0 0" />
|
||||
<mass
|
||||
value="0.171115687396794" />
|
||||
<inertia
|
||||
ixx="0.000110604944142724"
|
||||
ixy="-4.13537904185603E-07"
|
||||
ixz="3.02142205581103E-06"
|
||||
iyy="0.000175689959913363"
|
||||
iyz="-1.13002104132245E-06"
|
||||
izz="8.46587908656625E-05" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://00 0930Body-urdf4.SLDASM/meshes/link5-left.STL" />
|
||||
</geometry>
|
||||
<material
|
||||
name="">
|
||||
<color
|
||||
rgba="0.898039215686275 0.917647058823529 0.929411764705882 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://00 0930Body-urdf4.SLDASM/meshes/link5-left.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint
|
||||
name="joint5-left"
|
||||
type="revolute">
|
||||
<origin
|
||||
xyz="0 0.1315 -0.04125"
|
||||
rpy="-1.5708 0 0" />
|
||||
<parent
|
||||
link="link4-left" />
|
||||
<child
|
||||
link="link5-left" />
|
||||
<axis
|
||||
xyz="0 0 1" />
|
||||
<limit
|
||||
lower="-3.14"
|
||||
upper="3.14"
|
||||
effort="0"
|
||||
velocity="0" />
|
||||
</joint>
|
||||
<link
|
||||
name="link6-left">
|
||||
<inertial>
|
||||
<origin
|
||||
xyz="0.0160147732367327 -0.000660038957990938 0.0380434793705672"
|
||||
rpy="0 0 0" />
|
||||
<mass
|
||||
value="0.0326968497975282" />
|
||||
<inertia
|
||||
ixx="2.67125153002924E-05"
|
||||
ixy="-1.34580437208919E-11"
|
||||
ixz="5.06790755246012E-07"
|
||||
iyy="3.04838493405727E-05"
|
||||
iyz="6.45171446902217E-08"
|
||||
izz="6.26296697174092E-06" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://00 0930Body-urdf4.SLDASM/meshes/link6-left.STL" />
|
||||
</geometry>
|
||||
<material
|
||||
name="">
|
||||
<color
|
||||
rgba="0.898039215686275 0.917647058823529 0.929411764705882 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://00 0930Body-urdf4.SLDASM/meshes/link6-left.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint
|
||||
name="joint6-left"
|
||||
type="revolute">
|
||||
<origin
|
||||
xyz="0 -0.0369 0.1145"
|
||||
rpy="-1.5708 0 0" />
|
||||
<parent
|
||||
link="link5-left" />
|
||||
<child
|
||||
link="link6-left" />
|
||||
<axis
|
||||
xyz="0 0 -1" />
|
||||
<limit
|
||||
lower="-0.45"
|
||||
upper="0.785"
|
||||
effort="0"
|
||||
velocity="0" />
|
||||
</joint>
|
||||
<link
|
||||
name="link7-left">
|
||||
<inertial>
|
||||
<origin
|
||||
xyz="0.00178604570829378 0.0813605007818323 -0.0221116181447386"
|
||||
rpy="0 0 0" />
|
||||
<mass
|
||||
value="0.0935116969865748" />
|
||||
<inertia
|
||||
ixx="5.06673735014526E-05"
|
||||
ixy="-2.71420525306304E-07"
|
||||
ixz="1.46838383946241E-08"
|
||||
iyy="3.0989237776473E-05"
|
||||
iyz="1.23593328732233E-05"
|
||||
izz="5.31215311149928E-05" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://00 0930Body-urdf4.SLDASM/meshes/link7-left.STL" />
|
||||
</geometry>
|
||||
<material
|
||||
name="">
|
||||
<color
|
||||
rgba="1 1 1 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://00 0930Body-urdf4.SLDASM/meshes/link7-left.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint
|
||||
name="joint7-left"
|
||||
type="revolute">
|
||||
<origin
|
||||
xyz="-0.037 0 0.0369"
|
||||
rpy="3.1416 1.5708 0" />
|
||||
<parent
|
||||
link="link6-left" />
|
||||
<child
|
||||
link="link7-left" />
|
||||
<axis
|
||||
xyz="0 0 1" />
|
||||
<limit
|
||||
lower="-1.05"
|
||||
upper="1.05"
|
||||
effort="0"
|
||||
velocity="0" />
|
||||
</joint>
|
||||
<link
|
||||
name="link1-right">
|
||||
<inertial>
|
||||
<origin
|
||||
xyz="0.00186094851680057 -6.57027673802435E-05 0.0370126157045176"
|
||||
rpy="0 0 0" />
|
||||
<mass
|
||||
value="0.286348053119183" />
|
||||
<inertia
|
||||
ixx="0.000422547329511247"
|
||||
ixy="-2.35462474504554E-07"
|
||||
ixz="2.72544434270392E-06"
|
||||
iyy="0.000244327585311168"
|
||||
iyz="9.11871120787603E-08"
|
||||
izz="0.000344505354022551" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://00 0930Body-urdf4.SLDASM/meshes/link1-right.STL" />
|
||||
</geometry>
|
||||
<material
|
||||
name="">
|
||||
<color
|
||||
rgba="0.898039215686275 0.917647058823529 0.929411764705882 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://00 0930Body-urdf4.SLDASM/meshes/link1-right.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint
|
||||
name="joint1-right"
|
||||
type="revolute">
|
||||
<origin
|
||||
xyz="-0.1478 0.0405 0.441"
|
||||
rpy="1.5708 0 -1.5708" />
|
||||
<parent
|
||||
link="base_link" />
|
||||
<child
|
||||
link="link1-right" />
|
||||
<axis
|
||||
xyz="0 0 1" />
|
||||
<limit
|
||||
lower="-3.14"
|
||||
upper="3.14"
|
||||
effort="0"
|
||||
velocity="0" />
|
||||
</joint>
|
||||
<link
|
||||
name="link2-right">
|
||||
<inertial>
|
||||
<origin
|
||||
xyz="7.27312859680473E-05 -0.0807829812704791 -0.0425927065933143"
|
||||
rpy="0 0 0" />
|
||||
<mass
|
||||
value="0.238735801407796" />
|
||||
<inertia
|
||||
ixx="0.000233070980658933"
|
||||
ixy="1.78543084939719E-07"
|
||||
ixz="-1.10102016012101E-07"
|
||||
iyy="0.000172880087203568"
|
||||
iyz="-2.00130653105994E-05"
|
||||
izz="0.000249700712948636" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://00 0930Body-urdf4.SLDASM/meshes/link2-right.STL" />
|
||||
</geometry>
|
||||
<material
|
||||
name="">
|
||||
<color
|
||||
rgba="0.898039215686275 0.917647058823529 0.929411764705882 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://00 0930Body-urdf4.SLDASM/meshes/link2-right.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint
|
||||
name="joint2-right"
|
||||
type="revolute">
|
||||
<origin
|
||||
xyz="0.04975 0 0.053"
|
||||
rpy="-1.5708 0 -1.5708" />
|
||||
<parent
|
||||
link="link1-right" />
|
||||
<child
|
||||
link="link2-right" />
|
||||
<axis
|
||||
xyz="0 0 1" />
|
||||
<limit
|
||||
lower="-1.57"
|
||||
upper="1.57"
|
||||
effort="0"
|
||||
velocity="0" />
|
||||
</joint>
|
||||
<link
|
||||
name="link3-right">
|
||||
<inertial>
|
||||
<origin
|
||||
xyz="-0.00460138616057136 0.000426610219036727 0.0434471351805352"
|
||||
rpy="0 0 0" />
|
||||
<mass
|
||||
value="0.194030047437472" />
|
||||
<inertia
|
||||
ixx="0.000208755273065386"
|
||||
ixy="9.19066905598572E-11"
|
||||
ixz="5.3068688461369E-06"
|
||||
iyy="0.00010579532895932"
|
||||
iyz="2.40971986387619E-07"
|
||||
izz="0.000186285169356577" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://00 0930Body-urdf4.SLDASM/meshes/link3-right.STL" />
|
||||
</geometry>
|
||||
<material
|
||||
name="">
|
||||
<color
|
||||
rgba="0.898039215686275 0.917647058823529 0.929411764705882 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://00 0930Body-urdf4.SLDASM/meshes/link3-right.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint
|
||||
name="joint3-right"
|
||||
type="revolute">
|
||||
<origin
|
||||
xyz="0 -0.164 -0.04975"
|
||||
rpy="1.5708 -1.5708 0" />
|
||||
<parent
|
||||
link="link2-right" />
|
||||
<child
|
||||
link="link3-right" />
|
||||
<axis
|
||||
xyz="0 0 1" />
|
||||
<limit
|
||||
lower="-3.14"
|
||||
upper="3.14"
|
||||
effort="0"
|
||||
velocity="0" />
|
||||
</joint>
|
||||
<link
|
||||
name="link4-right">
|
||||
<inertial>
|
||||
<origin
|
||||
xyz="0.000268622682690761 -0.0373908249854035 -0.0354483066519652"
|
||||
rpy="0 0 0" />
|
||||
<mass
|
||||
value="0.0803291784530421" />
|
||||
<inertia
|
||||
ixx="0.000106626439664163"
|
||||
ixy="-2.08649766890664E-10"
|
||||
ixz="-6.4569389547017E-08"
|
||||
iyy="1.5891801109711E-05"
|
||||
iyz="9.54668799732348E-07"
|
||||
izz="0.000120588654971646" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://00 0930Body-urdf4.SLDASM/meshes/link4-right.STL" />
|
||||
</geometry>
|
||||
<material
|
||||
name="">
|
||||
<color
|
||||
rgba="0.898039215686275 0.917647058823529 0.929411764705882 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://00 0930Body-urdf4.SLDASM/meshes/link4-right.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint
|
||||
name="joint4-right"
|
||||
type="revolute">
|
||||
<origin
|
||||
xyz="0.04125 0 0.088"
|
||||
rpy="-1.5708 0 -1.5708" />
|
||||
<parent
|
||||
link="link3-right" />
|
||||
<child
|
||||
link="link4-right" />
|
||||
<axis
|
||||
xyz="0 0 1" />
|
||||
<limit
|
||||
lower="0"
|
||||
upper="2.355"
|
||||
effort="0"
|
||||
velocity="0" />
|
||||
</joint>
|
||||
<link
|
||||
name="link5-right">
|
||||
<inertial>
|
||||
<origin
|
||||
xyz="-0.00811980437592285 0.000647652694718309 0.0416257106322934"
|
||||
rpy="0 0 0" />
|
||||
<mass
|
||||
value="0.17111560162694" />
|
||||
<inertia
|
||||
ixx="0.000175689930428249"
|
||||
ixy="-4.13222163023912E-07"
|
||||
ixz="1.1300608500523E-06"
|
||||
iyy="0.000110604895479297"
|
||||
iyz="-2.66474916177748E-06"
|
||||
izz="8.46587925468465E-05" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://00 0930Body-urdf4.SLDASM/meshes/link5-right.STL" />
|
||||
</geometry>
|
||||
<material
|
||||
name="">
|
||||
<color
|
||||
rgba="0.898039215686275 0.917647058823529 0.929411764705882 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://00 0930Body-urdf4.SLDASM/meshes/link5-right.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint
|
||||
name="joint5-right"
|
||||
type="revolute">
|
||||
<origin
|
||||
xyz="0 -0.1315 -0.04125"
|
||||
rpy="1.5708 -1.5708 0" />
|
||||
<parent
|
||||
link="link4-right" />
|
||||
<child
|
||||
link="link5-right" />
|
||||
<axis
|
||||
xyz="0 0 1" />
|
||||
<limit
|
||||
lower="-3.14"
|
||||
upper="3.14"
|
||||
effort="0"
|
||||
velocity="0" />
|
||||
</joint>
|
||||
<link
|
||||
name="link6-right">
|
||||
<inertial>
|
||||
<origin
|
||||
xyz="0.0160147732366216 -0.000660099421881388 -0.0368134594403946"
|
||||
rpy="0 0 0" />
|
||||
<mass
|
||||
value="0.0326968497975282" />
|
||||
<inertia
|
||||
ixx="2.67125153002924E-05"
|
||||
ixy="1.34952551021368E-11"
|
||||
ixz="-5.0679067297724E-07"
|
||||
iyy="3.04838493405727E-05"
|
||||
iyz="6.4517144690801E-08"
|
||||
izz="6.26296697174077E-06" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://00 0930Body-urdf4.SLDASM/meshes/link6-right.STL" />
|
||||
</geometry>
|
||||
<material
|
||||
name="">
|
||||
<color
|
||||
rgba="0.898039215686275 0.917647058823529 0.929411764705882 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://00 0930Body-urdf4.SLDASM/meshes/link6-right.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint
|
||||
name="joint6-right"
|
||||
type="revolute">
|
||||
<origin
|
||||
xyz="0.0369 0 0.1145"
|
||||
rpy="-1.5708 0 -1.5708" />
|
||||
<parent
|
||||
link="link5-right" />
|
||||
<child
|
||||
link="link6-right" />
|
||||
<axis
|
||||
xyz="0 0 1" />
|
||||
<limit
|
||||
lower="-0.45"
|
||||
upper="0.785"
|
||||
effort="0"
|
||||
velocity="0" />
|
||||
</joint>
|
||||
<link
|
||||
name="link7-right">
|
||||
<inertial>
|
||||
<origin
|
||||
xyz="-7.26286393318538E-06 0.025058851607589 0.0149290377499663"
|
||||
rpy="0 0 0" />
|
||||
<mass
|
||||
value="0.0419946886424074" />
|
||||
<inertia
|
||||
ixx="3.12202177376165E-05"
|
||||
ixy="4.70222651242745E-09"
|
||||
ixz="1.00026929410169E-08"
|
||||
iyy="2.02239467874676E-05"
|
||||
iyz="-9.50264156124728E-06"
|
||||
izz="2.91363049162484E-05" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://00 0930Body-urdf4.SLDASM/meshes/link7-right.STL" />
|
||||
</geometry>
|
||||
<material
|
||||
name="">
|
||||
<color
|
||||
rgba="0.898039215686275 0.917647058823529 0.929411764705882 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://00 0930Body-urdf4.SLDASM/meshes/link7-right.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint
|
||||
name="joint7-right"
|
||||
type="revolute">
|
||||
<origin
|
||||
xyz="-0.037 0 -0.0369"
|
||||
rpy="0 -1.5708 0" />
|
||||
<parent
|
||||
link="link6-right" />
|
||||
<child
|
||||
link="link7-right" />
|
||||
<axis
|
||||
xyz="0 0 -1" />
|
||||
<limit
|
||||
lower="-1.05"
|
||||
upper="1.05"
|
||||
effort="0"
|
||||
velocity="0" />
|
||||
</joint>
|
||||
</robot>
|
||||
447
model/xiaozhao/urdf/xiaozhao.urdf
Normal file
447
model/xiaozhao/urdf/xiaozhao.urdf
Normal file
@ -0,0 +1,447 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<robot name="xiaozhao">
|
||||
<link name="base_link">
|
||||
<inertial>
|
||||
<origin xyz="-1.19384910205036E-06 0.0158820586330755 0.0601572634202883" rpy="0 0 0" />
|
||||
<mass value="12.0939193087609" />
|
||||
<inertia ixx="0.0771992576048866" ixy="-4.71603477080102E-07" ixz="-1.48909012424014E-07" iyy="0.110011609259562" iyz="-0.00671136747575047" izz="0.130299609920884" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin xyz="0 0 0" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh filename="package://00 0930Body-urdf4.SLDASM/meshes/base_link.STL" />
|
||||
</geometry>
|
||||
<material name="">
|
||||
<color rgba="0.752941176470588 0.752941176470588 0.752941176470588 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin xyz="0 0 0" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh filename="package://00 0930Body-urdf4.SLDASM/meshes/base_link.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<link name="link1-left">
|
||||
<inertial>
|
||||
<origin xyz="6.75324341598005E-05 -0.00414124893712335 0.0357014132791962" rpy="0 0 0" />
|
||||
<mass value="0.304090721433475" />
|
||||
<inertia ixx="0.000245055173827115" ixy="-2.11027978489438E-07" ixz="9.11870207358669E-08" iyy="0.00042828640186093" iyz="-3.16718145546335E-06" izz="0.000350389449270938" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin xyz="0 0 0" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh filename="package://00 0930Body-urdf4.SLDASM/meshes/link1-left.STL" />
|
||||
</geometry>
|
||||
<material name="">
|
||||
<color rgba="0.898039215686275 0.917647058823529 0.929411764705882 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin xyz="0 0 0" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh filename="package://00 0930Body-urdf4.SLDASM/meshes/link1-left.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint name="joint1-left" type="revolute">
|
||||
<origin xyz="0.1478 0.0405 0.441" rpy="0 1.5708 0" />
|
||||
<parent link="base_link" />
|
||||
<child link="link1-left" />
|
||||
<axis xyz="0 0 1" />
|
||||
<limit lower="-3.14" upper="3.14" effort="0" velocity="0" />
|
||||
</joint>
|
||||
<link name="link2-left">
|
||||
<inertial>
|
||||
<origin xyz="7.25060001084687e-05 0.0807829812620638 -0.0422541168775343" rpy="-3.14159265358979 0 0" />
|
||||
<mass value="0.238735801407796" />
|
||||
<inertia ixx="0.000233070980658983" ixy="1.78430707346592E-07" ixz="-1.10102013961508E-07" iyy="0.000172880087203634" iyz="1.98817891913915E-05" izz="0.000249700712948652" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin xyz="0 0 0" rpy="-3.14159265358979 0 0" />
|
||||
<geometry>
|
||||
<mesh filename="package://00 0930Body-urdf4.SLDASM/meshes/link2-left.STL" />
|
||||
</geometry>
|
||||
<material name="">
|
||||
<color rgba="0.898039215686275 0.917647058823529 0.929411764705882 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin xyz="0 0 0" rpy="-3.14159265358979 0 0" />
|
||||
<geometry>
|
||||
<mesh filename="package://00 0930Body-urdf4.SLDASM/meshes/link2-left.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint name="joint2-left" type="revolute">
|
||||
<origin xyz="0 -0.04975 0.053" rpy="1.57079265358979 0 0" />
|
||||
<parent link="link1-left" />
|
||||
<child link="link2-left" />
|
||||
<axis xyz="0 0 1" />
|
||||
<limit lower="-1.57" upper="1.57" effort="0" velocity="0" />
|
||||
</joint>
|
||||
<link name="link3-left">
|
||||
<inertial>
|
||||
<origin xyz="0.000612207603460563 0.00229659018905651 0.0517902912984107" rpy="0 0 0" />
|
||||
<mass value="0.206576313767245" />
|
||||
<inertia ixx="0.000106807122863566" ixy="1.3686406496755E-08" ixz="-9.39521625510296E-07" iyy="0.000211842956357412" iyz="-5.34315488439938E-06" izz="0.000188701328569606" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin xyz="0 0 0" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh filename="package://00 0930Body-urdf4.SLDASM/meshes/link3-left.STL" />
|
||||
</geometry>
|
||||
<material name="">
|
||||
<color rgba="0.898039215686275 0.917647058823529 0.929411764705882 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin xyz="0 0 0" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh filename="package://00 0930Body-urdf4.SLDASM/meshes/link3-left.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint name="joint3-left" type="revolute">
|
||||
<origin xyz="0 0.1575 -0.04975" rpy="-1.57079265358979 0 0" />
|
||||
<parent link="link2-left" />
|
||||
<child link="link3-left" />
|
||||
<axis xyz="0 0 1" />
|
||||
<limit lower="-3.14" upper="3.14" effort="0" velocity="0" />
|
||||
</joint>
|
||||
<link name="link4-left">
|
||||
<inertial>
|
||||
<origin xyz="0.000268740390489769 0.0373908800531662 -0.0359490477915483" rpy="0 0 0" />
|
||||
<mass value="0.0803293338116679" />
|
||||
<inertia ixx="0.000106626468821837" ixy="-2.31152323845664E-10" ixz="6.45631718028383E-08" iyy="1.58918187475175E-05" iyz="-9.54676249280788E-07" izz="0.000120588702228947" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin xyz="0 0 0" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh filename="package://00 0930Body-urdf4.SLDASM/meshes/link4-left.STL" />
|
||||
</geometry>
|
||||
<material name="">
|
||||
<color rgba="0.898039215686275 0.917647058823529 0.929411764705882 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin xyz="0 0 0" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh filename="package://00 0930Body-urdf4.SLDASM/meshes/link4-left.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint name="joint4-left" type="revolute">
|
||||
<origin xyz="0 -0.04125 0.0945" rpy="1.5708 0 0" />
|
||||
<parent link="link3-left" />
|
||||
<child link="link4-left" />
|
||||
<axis xyz="0 0 1" />
|
||||
<limit lower="-2.355" upper="0" effort="0" velocity="0" />
|
||||
</joint>
|
||||
<link name="link5-left">
|
||||
<inertial>
|
||||
<origin xyz="-0.00064770787776916 0.00811977664913954 0.0418779781048378" rpy="0 0 0" />
|
||||
<mass value="0.171115687396794" />
|
||||
<inertia ixx="0.000110604944142724" ixy="-4.13537904185603E-07" ixz="3.02142205581103E-06" iyy="0.000175689959913363" iyz="-1.13002104132245E-06" izz="8.46587908656625E-05" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin xyz="0 0 0" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh filename="package://00 0930Body-urdf4.SLDASM/meshes/link5-left.STL" />
|
||||
</geometry>
|
||||
<material name="">
|
||||
<color rgba="0.898039215686275 0.917647058823529 0.929411764705882 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin xyz="0 0 0" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh filename="package://00 0930Body-urdf4.SLDASM/meshes/link5-left.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint name="joint5-left" type="revolute">
|
||||
<origin xyz="0 0.1315 -0.04125" rpy="-1.5708 0 0" />
|
||||
<parent link="link4-left" />
|
||||
<child link="link5-left" />
|
||||
<axis xyz="0 0 1" />
|
||||
<limit lower="-3.14" upper="3.14" effort="0" velocity="0" />
|
||||
</joint>
|
||||
<link name="link6-left">
|
||||
<inertial>
|
||||
<origin xyz="0.0160147732367327 0.000660038957990938 -0.0380434793705672" rpy="-3.14159265358979 0 0" />
|
||||
<mass value="0.0326968497975282" />
|
||||
<inertia ixx="2.67125153002924E-05" ixy="-1.34580437208919E-11" ixz="5.06790755246012E-07" iyy="3.04838493405727E-05" iyz="6.45171446902217E-08" izz="6.26296697174092E-06" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin xyz="0 0 0" rpy="-3.14159265358979 0 0" />
|
||||
<geometry>
|
||||
<mesh filename="package://00 0930Body-urdf4.SLDASM/meshes/link6-left.STL" />
|
||||
</geometry>
|
||||
<material name="">
|
||||
<color rgba="0.898039215686275 0.917647058823529 0.929411764705882 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin xyz="0 0 0" rpy="-3.14159265358979 0 0" />
|
||||
<geometry>
|
||||
<mesh filename="package://00 0930Body-urdf4.SLDASM/meshes/link6-left.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint name="joint6-left" type="revolute">
|
||||
<origin xyz="0 -0.0369 0.1145" rpy="1.57079265358979 0 0" />
|
||||
<parent link="link5-left" />
|
||||
<child link="link6-left" />
|
||||
<axis xyz="0 0 1" />
|
||||
<limit lower="-0.785" upper="0.45" effort="0" velocity="0" />
|
||||
</joint>
|
||||
<link name="link7-left">
|
||||
<inertial>
|
||||
<origin xyz="0.00178604570829378 0.0813605007818323 -0.0221116181447386" rpy="0 0 0" />
|
||||
<mass value="0.0935116969865748" />
|
||||
<inertia ixx="5.06673735014526E-05" ixy="-2.71420525306304E-07" ixz="1.46838383946241E-08" iyy="3.0989237776473E-05" iyz="1.23593328732233E-05" izz="5.31215311149928E-05" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin xyz="0 0 0" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh filename="package://00 0930Body-urdf4.SLDASM/meshes/link7-left.STL" />
|
||||
</geometry>
|
||||
<material name="">
|
||||
<color rgba="1 1 1 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin xyz="0 0 0" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh filename="package://00 0930Body-urdf4.SLDASM/meshes/link7-left.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint name="joint7-left" type="revolute">
|
||||
<origin xyz="-0.037 0 -0.0369" rpy="7.34641020683213e-06 -1.5708 0" />
|
||||
<parent link="link6-left" />
|
||||
<child link="link7-left" />
|
||||
<axis xyz="0 0 1" />
|
||||
<limit lower="-1.05" upper="1.05" effort="0" velocity="0" />
|
||||
</joint>
|
||||
<link name="link1-right">
|
||||
<inertial>
|
||||
<origin xyz="0.00186094851680057 -6.57027673802435E-05 0.0370126157045176" rpy="0 0 0" />
|
||||
<mass value="0.286348053119183" />
|
||||
<inertia ixx="0.000422547329511247" ixy="-2.35462474504554E-07" ixz="2.72544434270392E-06" iyy="0.000244327585311168" iyz="9.11871120787603E-08" izz="0.000344505354022551" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin xyz="0 0 0" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh filename="package://00 0930Body-urdf4.SLDASM/meshes/link1-right.STL" />
|
||||
</geometry>
|
||||
<material name="">
|
||||
<color rgba="0.898039215686275 0.917647058823529 0.929411764705882 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin xyz="0 0 0" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh filename="package://00 0930Body-urdf4.SLDASM/meshes/link1-right.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint name="joint1-right" type="revolute">
|
||||
<origin xyz="-0.1478 0.0405 0.441" rpy="1.5708 0 -1.5708" />
|
||||
<parent link="base_link" />
|
||||
<child link="link1-right" />
|
||||
<axis xyz="0 0 1" />
|
||||
<limit lower="-3.14" upper="3.14" effort="0" velocity="0" />
|
||||
</joint>
|
||||
<link name="link2-right">
|
||||
<inertial>
|
||||
<origin xyz="7.27312859680473E-05 -0.0807829812704791 -0.0425927065933143" rpy="0 0 0" />
|
||||
<mass value="0.238735801407796" />
|
||||
<inertia ixx="0.000233070980658933" ixy="1.78543084939719E-07" ixz="-1.10102016012101E-07" iyy="0.000172880087203568" iyz="-2.00130653105994E-05" izz="0.000249700712948636" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin xyz="0 0 0" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh filename="package://00 0930Body-urdf4.SLDASM/meshes/link2-right.STL" />
|
||||
</geometry>
|
||||
<material name="">
|
||||
<color rgba="0.898039215686275 0.917647058823529 0.929411764705882 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin xyz="0 0 0" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh filename="package://00 0930Body-urdf4.SLDASM/meshes/link2-right.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint name="joint2-right" type="revolute">
|
||||
<origin xyz="0.04975 0 0.053" rpy="-1.5708 0 -1.5708" />
|
||||
<parent link="link1-right" />
|
||||
<child link="link2-right" />
|
||||
<axis xyz="0 0 1" />
|
||||
<limit lower="-1.57" upper="1.57" effort="0" velocity="0" />
|
||||
</joint>
|
||||
<link name="link3-right">
|
||||
<inertial>
|
||||
<origin xyz="-0.00460138616057136 0.000426610219036727 0.0434471351805352" rpy="0 0 0" />
|
||||
<mass value="0.194030047437472" />
|
||||
<inertia ixx="0.000208755273065386" ixy="9.19066905598572E-11" ixz="5.3068688461369E-06" iyy="0.00010579532895932" iyz="2.40971986387619E-07" izz="0.000186285169356577" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin xyz="0 0 0" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh filename="package://00 0930Body-urdf4.SLDASM/meshes/link3-right.STL" />
|
||||
</geometry>
|
||||
<material name="">
|
||||
<color rgba="0.898039215686275 0.917647058823529 0.929411764705882 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin xyz="0 0 0" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh filename="package://00 0930Body-urdf4.SLDASM/meshes/link3-right.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint name="joint3-right" type="revolute">
|
||||
<origin xyz="0 -0.164 -0.04975" rpy="1.5708 -1.5708 0" />
|
||||
<parent link="link2-right" />
|
||||
<child link="link3-right" />
|
||||
<axis xyz="0 0 1" />
|
||||
<limit lower="-3.14" upper="3.14" effort="0" velocity="0" />
|
||||
</joint>
|
||||
<link name="link4-right">
|
||||
<inertial>
|
||||
<origin xyz="0.000268622682690761 -0.0373908249854035 -0.0354483066519652" rpy="0 0 0" />
|
||||
<mass value="0.0803291784530421" />
|
||||
<inertia ixx="0.000106626439664163" ixy="-2.08649766890664E-10" ixz="-6.4569389547017E-08" iyy="1.5891801109711E-05" iyz="9.54668799732348E-07" izz="0.000120588654971646" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin xyz="0 0 0" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh filename="package://00 0930Body-urdf4.SLDASM/meshes/link4-right.STL" />
|
||||
</geometry>
|
||||
<material name="">
|
||||
<color rgba="0.898039215686275 0.917647058823529 0.929411764705882 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin xyz="0 0 0" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh filename="package://00 0930Body-urdf4.SLDASM/meshes/link4-right.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint name="joint4-right" type="revolute">
|
||||
<origin xyz="0.04125 0 0.088" rpy="-1.5708 0 -1.5708" />
|
||||
<parent link="link3-right" />
|
||||
<child link="link4-right" />
|
||||
<axis xyz="0 0 1" />
|
||||
<limit lower="0" upper="2.355" effort="0" velocity="0" />
|
||||
</joint>
|
||||
<link name="link5-right">
|
||||
<inertial>
|
||||
<origin xyz="-0.00811980437592285 0.000647652694718309 0.0416257106322934" rpy="0 0 0" />
|
||||
<mass value="0.17111560162694" />
|
||||
<inertia ixx="0.000175689930428249" ixy="-4.13222163023912E-07" ixz="1.1300608500523E-06" iyy="0.000110604895479297" iyz="-2.66474916177748E-06" izz="8.46587925468465E-05" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin xyz="0 0 0" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh filename="package://00 0930Body-urdf4.SLDASM/meshes/link5-right.STL" />
|
||||
</geometry>
|
||||
<material name="">
|
||||
<color rgba="0.898039215686275 0.917647058823529 0.929411764705882 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin xyz="0 0 0" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh filename="package://00 0930Body-urdf4.SLDASM/meshes/link5-right.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint name="joint5-right" type="revolute">
|
||||
<origin xyz="0 -0.1315 -0.04125" rpy="1.5708 -1.5708 0" />
|
||||
<parent link="link4-right" />
|
||||
<child link="link5-right" />
|
||||
<axis xyz="0 0 1" />
|
||||
<limit lower="-3.14" upper="3.14" effort="0" velocity="0" />
|
||||
</joint>
|
||||
<link name="link6-right">
|
||||
<inertial>
|
||||
<origin xyz="0.0160147732366216 -0.000660099421881388 -0.0368134594403946" rpy="0 0 0" />
|
||||
<mass value="0.0326968497975282" />
|
||||
<inertia ixx="2.67125153002924E-05" ixy="1.34952551021368E-11" ixz="-5.0679067297724E-07" iyy="3.04838493405727E-05" iyz="6.4517144690801E-08" izz="6.26296697174077E-06" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin xyz="0 0 0" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh filename="package://00 0930Body-urdf4.SLDASM/meshes/link6-right.STL" />
|
||||
</geometry>
|
||||
<material name="">
|
||||
<color rgba="0.898039215686275 0.917647058823529 0.929411764705882 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin xyz="0 0 0" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh filename="package://00 0930Body-urdf4.SLDASM/meshes/link6-right.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint name="joint6-right" type="revolute">
|
||||
<origin xyz="0.0369 0 0.1145" rpy="-1.5708 0 -1.5708" />
|
||||
<parent link="link5-right" />
|
||||
<child link="link6-right" />
|
||||
<axis xyz="0 0 1" />
|
||||
<limit lower="-0.45" upper="0.785" effort="0" velocity="0" />
|
||||
</joint>
|
||||
<link name="link7-right">
|
||||
<!-- Display assembly: bracket and mirrored hand use Rx(pi), placing the collar alongside the last motor at local Z=-30 mm, with fingers along distal -Y. Kinematic joint origin/axis unchanged. -->
|
||||
<inertial>
|
||||
<origin xyz="-7.26286393318538E-06 0.025058851607589 0.0149290377499663" rpy="0 0 0" />
|
||||
<mass value="0.0419946886424074" />
|
||||
<inertia ixx="3.12202177376165E-05" ixy="4.70222651242745E-09" ixz="1.00026929410169E-08" iyy="2.02239467874676E-05" iyz="-9.50264156124728E-06" izz="2.91363049162484E-05" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin xyz="0 0 0" rpy="3.141592653589793 0 0" />
|
||||
<geometry>
|
||||
<mesh filename="package://00 0930Body-urdf4.SLDASM/meshes/link7-right.STL" />
|
||||
</geometry>
|
||||
<material name="">
|
||||
<color rgba="0.898039215686275 0.917647058823529 0.929411764705882 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin xyz="0 0 0" rpy="3.141592653589793 0 0" />
|
||||
<geometry>
|
||||
<mesh filename="package://00 0930Body-urdf4.SLDASM/meshes/link7-right.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
<visual name="mirrored_right_hand_visual">
|
||||
<origin xyz="0 0 0" rpy="3.141592653589793 0 0" />
|
||||
<geometry>
|
||||
<mesh filename="package://00 0930Body-urdf4.SLDASM/meshes/hand-right-mirrored.STL" />
|
||||
</geometry>
|
||||
<material name="mirrored_hand_white">
|
||||
<color rgba="1 1 1 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision name="mirrored_right_hand_collision">
|
||||
<origin xyz="0 0 0" rpy="3.141592653589793 0 0" />
|
||||
<geometry>
|
||||
<mesh filename="package://00 0930Body-urdf4.SLDASM/meshes/hand-right-mirrored.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint name="joint7-right" type="revolute">
|
||||
<origin xyz="-0.037 0 -0.0369" rpy="0 -1.5708 0" />
|
||||
<parent link="link6-right" />
|
||||
<child link="link7-right" />
|
||||
<axis xyz="0 0 1" />
|
||||
<limit lower="-1.05" upper="1.05" effort="0" velocity="0" />
|
||||
</joint>
|
||||
</robot>
|
||||
44
model/xiaozhao/xml/actuators.xml
Normal file
44
model/xiaozhao/xml/actuators.xml
Normal file
@ -0,0 +1,44 @@
|
||||
<mujoco model="xiaozhao_actuators">
|
||||
<!-- Simulation position servos; ctrl values are joint angles in radians.
|
||||
Gains are initial simulation settings, not identified hardware parameters.
|
||||
URDF effort limits are zero placeholders, so no hardware torque limits are assumed. -->
|
||||
<default>
|
||||
<default class="xiaozhao_position">
|
||||
<position kp="200" dampratio="1" ctrllimited="true"/>
|
||||
</default>
|
||||
</default>
|
||||
|
||||
<actuator>
|
||||
<!-- Left arm -->
|
||||
<position name="joint1-left_pos" class="xiaozhao_position"
|
||||
joint="joint1-left" ctrlrange="-3.14 3.14"/>
|
||||
<position name="joint2-left_pos" class="xiaozhao_position"
|
||||
joint="joint2-left" ctrlrange="-1.57 1.57"/>
|
||||
<position name="joint3-left_pos" class="xiaozhao_position"
|
||||
joint="joint3-left" ctrlrange="-3.14 3.14"/>
|
||||
<position name="joint4-left_pos" class="xiaozhao_position"
|
||||
joint="joint4-left" kp="150" ctrlrange="-2.355 0"/>
|
||||
<position name="joint5-left_pos" class="xiaozhao_position"
|
||||
joint="joint5-left" kp="80" ctrlrange="-3.14 3.14"/>
|
||||
<position name="joint6-left_pos" class="xiaozhao_position"
|
||||
joint="joint6-left" kp="80" ctrlrange="-0.785 0.45"/>
|
||||
<position name="joint7-left_pos" class="xiaozhao_position"
|
||||
joint="joint7-left" kp="80" ctrlrange="-1.05 1.05"/>
|
||||
|
||||
<!-- Right arm -->
|
||||
<position name="joint1-right_pos" class="xiaozhao_position"
|
||||
joint="joint1-right" ctrlrange="-3.14 3.14"/>
|
||||
<position name="joint2-right_pos" class="xiaozhao_position"
|
||||
joint="joint2-right" ctrlrange="-1.57 1.57"/>
|
||||
<position name="joint3-right_pos" class="xiaozhao_position"
|
||||
joint="joint3-right" ctrlrange="-3.14 3.14"/>
|
||||
<position name="joint4-right_pos" class="xiaozhao_position"
|
||||
joint="joint4-right" kp="150" ctrlrange="0 2.355"/>
|
||||
<position name="joint5-right_pos" class="xiaozhao_position"
|
||||
joint="joint5-right" kp="80" ctrlrange="-3.14 3.14"/>
|
||||
<position name="joint6-right_pos" class="xiaozhao_position"
|
||||
joint="joint6-right" kp="80" ctrlrange="-0.45 0.785"/>
|
||||
<position name="joint7-right_pos" class="xiaozhao_position"
|
||||
joint="joint7-right" kp="80" ctrlrange="-1.05 1.05"/>
|
||||
</actuator>
|
||||
</mujoco>
|
||||
28
model/xiaozhao/xml/environment.xml
Normal file
28
model/xiaozhao/xml/environment.xml
Normal file
@ -0,0 +1,28 @@
|
||||
<mujoco model="xiaozhao_environment">
|
||||
<!-- Background, floor material and lighting match ../../xiaoyan_description/dual_arm.xml. -->
|
||||
<visual>
|
||||
<global offwidth="640" offheight="480"/>
|
||||
<map znear="0.02" zfar="5"/>
|
||||
</visual>
|
||||
|
||||
<asset>
|
||||
<texture name="skybox" type="skybox" builtin="gradient"
|
||||
rgb1="0.4 0.6 0.8" rgb2="0 0 0" width="512" height="512"/>
|
||||
<texture name="grid" type="2d" builtin="checker"
|
||||
width="512" height="512"
|
||||
rgb1="0.2 0.3 0.4" rgb2="0.1 0.2 0.3"
|
||||
mark="cross" markrgb="0.8 0.8 0.8"/>
|
||||
<material name="grid_floor" texture="grid" texrepeat="5 5"
|
||||
rgba="1 1 1.0 1" emission="0.9" specular="0.5"
|
||||
shininess="1" reflectance="0.3"/>
|
||||
</asset>
|
||||
|
||||
<worldbody>
|
||||
<light name="top_light" mode="track" directional="true"
|
||||
diffuse="0.4 0.4 0.4" specular="0.3 0.3 0.3"
|
||||
pos="0 0 3" dir="0 0 -1"/>
|
||||
<!-- The original base mesh extends 0.183 m below base_link. -->
|
||||
<geom name="floor" type="plane" pos="0 0 -0.183" size="0 0 0.05"
|
||||
material="grid_floor" condim="3" friction="1 0.005 0.0001"/>
|
||||
</worldbody>
|
||||
</mujoco>
|
||||
7
model/xiaozhao/xml/scene.xml
Normal file
7
model/xiaozhao/xml/scene.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<mujoco model="xiaozhao_scene">
|
||||
<!-- Open this file in MuJoCo to load the robot with its environment. -->
|
||||
<include file="xiaozhao.xml"/>
|
||||
<include file="environment.xml"/>
|
||||
<include file="actuators.xml"/>
|
||||
<option timestep="0.001" integrator="implicitfast"/>
|
||||
</mujoco>
|
||||
125
model/xiaozhao/xml/xiaozhao.xml
Normal file
125
model/xiaozhao/xml/xiaozhao.xml
Normal file
@ -0,0 +1,125 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<mujoco model="xiaozhao">
|
||||
<!-- Converted from ../urdf/xiaozhao.urdf with MuJoCo 3.3.7. Fixed base_link; 14 joints; no mounting pedestal. -->
|
||||
<!-- Large STL meshes are losslessly re-encoded as OBJ. Original inertial, visual and collision definitions are retained. -->
|
||||
<!-- Position servos are defined in actuators.xml and included by scene.xml. -->
|
||||
<!-- Inertial principal axes include the URDF inertial-origin rotations. -->
|
||||
<compiler angle="radian" meshdir="../meshes" />
|
||||
<asset>
|
||||
<mesh name="base_link" file="base_link.obj" />
|
||||
<mesh name="link1-left" file="link1-left.STL" />
|
||||
<mesh name="link2-left" file="link2-left.STL" />
|
||||
<mesh name="link3-left" file="link3-left.STL" />
|
||||
<mesh name="link4-left" file="link4-left.STL" />
|
||||
<mesh name="link5-left" file="link5-left.STL" />
|
||||
<mesh name="link6-left" file="link6-left.STL" />
|
||||
<mesh name="link7-left" file="link7-left.obj" />
|
||||
<mesh name="link1-right" file="link1-right.STL" />
|
||||
<mesh name="link2-right" file="link2-right.STL" />
|
||||
<mesh name="link3-right" file="link3-right.STL" />
|
||||
<mesh name="link4-right" file="link4-right.STL" />
|
||||
<mesh name="link5-right" file="link5-right.STL" />
|
||||
<mesh name="link6-right" content_type="model/stl" file="link6-right.STL" />
|
||||
<mesh name="link7-right" content_type="model/stl" file="link7-right.STL" />
|
||||
<mesh name="hand-right-mirrored" content_type="model/obj" file="hand-right-mirrored.obj" />
|
||||
</asset>
|
||||
<worldbody>
|
||||
<body name="base_link">
|
||||
<inertial pos="-1.19385e-06 0.0158821 0.0601573" quat="-0.102963 0.69957 -0.102952 0.699572" mass="12.0939" diaginertia="0.132319 0.107992 0.0771993" />
|
||||
<geom type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="0.752941 0.752941 0.752941 1" mesh="base_link" />
|
||||
<geom type="mesh" rgba="0.752941 0.752941 0.752941 1" mesh="base_link" />
|
||||
<body name="link1-left" pos="0.1478 0.0405 0.441" quat="0.707105 0 0.707108 0">
|
||||
<inertial pos="6.75324e-05 -0.00414125 0.0357014" quat="0.509548 0.489669 0.510529 0.489842" mass="0.304091" diaginertia="0.000428415 0.000350261 0.000245055" />
|
||||
<joint name="joint1-left" pos="0 0 0" axis="0 0 1" range="-3.14 3.14" />
|
||||
<geom type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="0.898039 0.917647 0.929412 1" mesh="link1-left" />
|
||||
<geom type="mesh" rgba="0.898039 0.917647 0.929412 1" mesh="link1-left" />
|
||||
<body name="link2-left" pos="0 -0.04975 0.053" quat="0.707108 0.707105 0 0">
|
||||
<inertial pos="7.2506e-05 0.080783 -0.0422541" quat="0.437069 -0.554493 0.55751 0.436682" mass="0.238736" diaginertia="0.000254541 0.000233071 0.000168039" />
|
||||
<joint name="joint2-left" pos="0 0 0" axis="0 0 1" range="-1.57 1.57" />
|
||||
<geom pos="0 0 0" quat="0 -1 0 0" type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="0.898039 0.917647 0.929412 1" mesh="link2-left" />
|
||||
<geom pos="0 0 0" quat="0 -1 0 0" type="mesh" rgba="0.898039 0.917647 0.929412 1" mesh="link2-left" />
|
||||
<body name="link3-left" pos="0 0.1575 -0.04975" quat="0.707108 -0.707105 0 0">
|
||||
<inertial pos="0.000612208 0.00229659 0.0517903" quat="0.554126 0.440405 0.547991 0.445751" mass="0.206576" diaginertia="0.000213017 0.000187538 0.000106796" />
|
||||
<joint name="joint3-left" pos="0 0 0" axis="0 0 1" range="-3.14 3.14" />
|
||||
<geom type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="0.898039 0.917647 0.929412 1" mesh="link3-left" />
|
||||
<geom type="mesh" rgba="0.898039 0.917647 0.929412 1" mesh="link3-left" />
|
||||
<body name="link4-left" pos="0 -0.04125 0.0945" quat="0.707105 0.707108 0 0">
|
||||
<inertial pos="0.00026874 0.0373909 -0.035949" quat="0.498863 0.503434 -0.501111 0.496565" mass="0.0803293" diaginertia="0.000120598 0.000106626 1.58831e-05" />
|
||||
<joint name="joint4-left" pos="0 0 0" axis="0 0 1" range="-2.355 0" />
|
||||
<geom type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="0.898039 0.917647 0.929412 1" mesh="link4-left" />
|
||||
<geom type="mesh" rgba="0.898039 0.917647 0.929412 1" mesh="link4-left" />
|
||||
<body name="link5-left" pos="0 0.1315 -0.04125" quat="0.707105 -0.707108 0 0">
|
||||
<inertial pos="-0.000647708 0.00811978 0.041878" quat="0.703234 -0.0446477 -0.0360034 0.708642" mass="0.171116" diaginertia="0.000175707 0.000110948 8.42989e-05" />
|
||||
<joint name="joint5-left" pos="0 0 0" axis="0 0 1" range="-3.14 3.14" />
|
||||
<geom type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="0.898039 0.917647 0.929412 1" mesh="link5-left" />
|
||||
<geom type="mesh" rgba="0.898039 0.917647 0.929412 1" mesh="link5-left" />
|
||||
<body name="link6-left" pos="0 -0.0369 0.1145" quat="0.707108 0.707105 0 0">
|
||||
<inertial pos="0.0160148 0.000660039 -0.0380435" quat="-0.00781159 -0.707189 0.706915 0.00969709" mass="0.0326968" diaginertia="3.0484e-05 2.67251e-05 6.25024e-06" />
|
||||
<joint name="joint6-left" pos="0 0 0" axis="0 0 1" range="-0.785 0.45" />
|
||||
<geom quat="0 -1 0 0" type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="0.898039 0.917647 0.929412 1" mesh="link6-left" />
|
||||
<geom quat="0 -1 0 0" type="mesh" rgba="0.898039 0.917647 0.929412 1" mesh="link6-left" />
|
||||
<body name="link7-left" pos="-0.037 0 -0.0369" quat="0.707105 2.59734e-06 -0.707108 2.59735e-06">
|
||||
<inertial pos="0.00178605 0.0813605 -0.0221116" quat="0.591603 0.379349 -0.390017 0.594969" mass="0.0935117" diaginertia="5.86461e-05 5.06687e-05 2.54633e-05" />
|
||||
<joint name="joint7-left" pos="0 0 0" axis="0 0 1" range="-1.05 1.05" />
|
||||
<geom type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="1 1 1 1" mesh="link7-left" />
|
||||
<geom type="mesh" rgba="1 1 1 1" mesh="link7-left" />
|
||||
</body>
|
||||
</body>
|
||||
</body>
|
||||
</body>
|
||||
</body>
|
||||
</body>
|
||||
</body>
|
||||
<body name="link1-right" pos="-0.1478 0.0405 0.441" quat="0.499998 0.5 -0.500002 -0.5">
|
||||
<inertial pos="0.00186095 -6.57028e-05 0.0370126" quat="0.707342 0.706656 -0.0127919 0.0118593" mass="0.286348" diaginertia="0.000422643 0.00034441 0.000244327" />
|
||||
<joint name="joint1-right" pos="0 0 0" axis="0 0 1" range="-3.14 3.14" />
|
||||
<geom type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="0.898039 0.917647 0.929412 1" mesh="link1-right" />
|
||||
<geom type="mesh" rgba="0.898039 0.917647 0.929412 1" mesh="link1-right" />
|
||||
<body name="link2-right" pos="0.04975 0 0.053" quat="0.499998 -0.5 0.500002 -0.5">
|
||||
<inertial pos="7.27313e-05 -0.080783 -0.0425927" quat="0.434354 0.554857 -0.55773 0.438642" mass="0.238736" diaginertia="0.000254603 0.00023307 0.000167979" />
|
||||
<joint name="joint2-right" pos="0 0 0" axis="0 0 1" range="-1.57 1.57" />
|
||||
<geom type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="0.898039 0.917647 0.929412 1" mesh="link2-right" />
|
||||
<geom type="mesh" rgba="0.898039 0.917647 0.929412 1" mesh="link2-right" />
|
||||
<body name="link3-right" pos="0 -0.164 -0.04975" quat="0.499998 0.5 -0.5 0.500002">
|
||||
<inertial pos="-0.00460139 0.00042661 0.0434471" quat="0.703869 0.701746 -0.0777895 0.0779152" mass="0.19403" diaginertia="0.000209946 0.000185096 0.000105795" />
|
||||
<joint name="joint3-right" pos="0 0 0" axis="0 0 1" range="-3.14 3.14" />
|
||||
<geom type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="0.898039 0.917647 0.929412 1" mesh="link3-right" />
|
||||
<geom type="mesh" rgba="0.898039 0.917647 0.929412 1" mesh="link3-right" />
|
||||
<body name="link4-right" pos="0.04125 0 0.088" quat="0.499998 -0.5 0.500002 -0.5">
|
||||
<inertial pos="0.000268623 -0.0373908 -0.0354483" quat="0.501111 0.496565 -0.498863 0.503434" mass="0.0803292" diaginertia="0.000120598 0.000106626 1.58831e-05" />
|
||||
<joint name="joint4-right" pos="0 0 0" axis="0 0 1" range="0 2.355" />
|
||||
<geom type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="0.898039 0.917647 0.929412 1" mesh="link4-right" />
|
||||
<geom type="mesh" rgba="0.898039 0.917647 0.929412 1" mesh="link4-right" />
|
||||
<body name="link5-right" pos="0 -0.1315 -0.04125" quat="0.499998 0.5 -0.5 0.500002">
|
||||
<inertial pos="-0.0081198 0.000647653 0.0416257" quat="0.998699 -0.0504829 -0.00612479 -0.00374546" mass="0.171116" diaginertia="0.000175707 0.000110871 8.43751e-05" />
|
||||
<joint name="joint5-right" pos="0 0 0" axis="0 0 1" range="-3.14 3.14" />
|
||||
<geom type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="0.898039 0.917647 0.929412 1" mesh="link5-right" />
|
||||
<geom type="mesh" rgba="0.898039 0.917647 0.929412 1" mesh="link5-right" />
|
||||
<body name="link6-right" pos="0.0369 0 0.1145" quat="0.499998 -0.5 0.500002 -0.5">
|
||||
<inertial pos="0.0160148 -0.000660099 -0.0368135" quat="0.706915 0.00969709 0.00781159 0.707189" mass="0.0326968" diaginertia="3.0484e-05 2.67251e-05 6.25024e-06" />
|
||||
<joint name="joint6-right" pos="0 0 0" axis="0 0 1" range="-0.45 0.785" />
|
||||
<geom type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="0.898039 0.917647 0.929412 1" mesh="link6-right" />
|
||||
<geom type="mesh" rgba="0.898039 0.917647 0.929412 1" mesh="link6-right" />
|
||||
<body name="link7-right" pos="-0.037 0 -0.0369" quat="0.707105 0 -0.707108 0">
|
||||
<inertial pos="-7.26286e-06 0.0250589 0.014929" quat="0.34053 0.620312 -0.619198 0.34036" mass="0.0419947" diaginertia="3.51757e-05 3.12202e-05 1.41845e-05" />
|
||||
<joint name="joint7-right" pos="0 0 0" axis="0 0 1" range="-1.05 1.05" />
|
||||
<geom quat="0 1 0 0" type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="0.898039 0.917647 0.929412 1" mesh="link7-right" />
|
||||
<geom quat="0 1 0 0" type="mesh" rgba="0.898039 0.917647 0.929412 1" mesh="link7-right" />
|
||||
<geom name="mirrored_right_hand_visual" pos="0 0 0" quat="0 1 0 0" type="mesh" contype="0" conaffinity="0" group="1" density="0" rgba="1 1 1 1" mesh="hand-right-mirrored" />
|
||||
<geom name="mirrored_right_hand_collision" pos="0 0 0" quat="0 1 0 0" type="mesh" rgba="1 1 1 1" mesh="hand-right-mirrored" />
|
||||
</body>
|
||||
</body>
|
||||
</body>
|
||||
</body>
|
||||
</body>
|
||||
</body>
|
||||
</body>
|
||||
</body>
|
||||
</worldbody>
|
||||
<contact>
|
||||
<!-- These adjacent mounting meshes overlap at the shoulder joints.
|
||||
The fixed base is welded to world, so MuJoCo's parent filter does not exclude them. -->
|
||||
<exclude body1="base_link" body2="link1-left" />
|
||||
<exclude body1="base_link" body2="link1-right" />
|
||||
</contact>
|
||||
</mujoco>
|
||||
@ -1,6 +1,7 @@
|
||||
# 项目脚本
|
||||
|
||||
项目脚本统一放在 `scripts/`,以下命令默认从项目根目录执行。
|
||||
通用项目脚本放在 `scripts/`,以下命令默认从项目根目录执行。
|
||||
模型限位工具放在 `model/`,见 [模型工具说明](../model/README.md)。
|
||||
|
||||
| 入口 | 用途 |
|
||||
| --- | --- |
|
||||
|
||||
406
scripts/tests/test_update_joint_limits.py
Normal file
406
scripts/tests/test_update_joint_limits.py
Normal file
@ -0,0 +1,406 @@
|
||||
"""End-to-end tests for synchronizing CSV joint limits across model files."""
|
||||
|
||||
from pathlib import Path
|
||||
import math
|
||||
import re
|
||||
import stat
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
import unittest
|
||||
from unittest import mock
|
||||
import xml.etree.ElementTree as ET
|
||||
|
||||
|
||||
SCRIPT = Path(__file__).resolve().parents[2] / "model" / "update_joint_limits.py"
|
||||
|
||||
URDF = b'''<?xml version="1.0"?>
|
||||
<robot name="fixture">
|
||||
<!-- Keep the source comment and formatting. -->
|
||||
<link name="base"/>
|
||||
<link name="arm"/>
|
||||
<link name="wrist"/>
|
||||
<joint name="shoulder" type="revolute">
|
||||
<parent link="base"/><child link="arm"/><axis xyz="0 0 1"/>
|
||||
<limit lower="-1" upper="1" effort="30" velocity="2"/>
|
||||
</joint>
|
||||
<joint name="wrist" type="revolute">
|
||||
<parent link="arm"/><child link="wrist"/><axis xyz="0 1 0"/>
|
||||
<limit lower="-0.5" upper="0.5" effort="10" velocity="3"/>
|
||||
</joint>
|
||||
</robot>
|
||||
'''
|
||||
|
||||
MJCF = b'''<mujoco model="fixture">
|
||||
<compiler angle="radian"/>
|
||||
<!-- Joint limits are independent of visual materials. -->
|
||||
<worldbody>
|
||||
<body name="arm">
|
||||
<joint name="shoulder" type="hinge" range="-1 1" axis="0 0 1"/>
|
||||
<body name="wrist">
|
||||
<joint name="wrist" type="hinge" range="-0.5 0.5" axis="0 1 0"/>
|
||||
</body>
|
||||
</body>
|
||||
</worldbody>
|
||||
</mujoco>
|
||||
'''
|
||||
|
||||
ACTUATORS = b'''<mujoco model="fixture_actuators">
|
||||
<default><default class="position_servo"><position kp="100"/></default></default>
|
||||
<!-- Names intentionally differ from the joints and list order is reversed. -->
|
||||
<actuator>
|
||||
<position name="small_motor" class="position_servo" joint="wrist"
|
||||
ctrlrange="-0.5 0.5" kp="20"/>
|
||||
<position name="large_motor" class="position_servo" joint="shoulder"
|
||||
ctrlrange="-1 1" kp="100"/>
|
||||
</actuator>
|
||||
</mujoco>
|
||||
'''
|
||||
|
||||
|
||||
class UpdateJointLimitsTests(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.temporary = tempfile.TemporaryDirectory(prefix="joint-limit-test-")
|
||||
self.addCleanup(self.temporary.cleanup)
|
||||
self.directory = Path(self.temporary.name)
|
||||
self.csv = self.directory / "limits.csv"
|
||||
self.urdf = self.directory / "robot.urdf"
|
||||
self.mjcf = self.directory / "robot.xml"
|
||||
self.actuators = self.directory / "actuators.xml"
|
||||
self.targets = (self.urdf, self.mjcf, self.actuators)
|
||||
self.urdf.write_bytes(URDF)
|
||||
self.mjcf.write_bytes(MJCF)
|
||||
self.actuators.write_bytes(ACTUATORS)
|
||||
|
||||
def run_cli(self, csv_text, *options, encoding="utf-8"):
|
||||
self.csv.write_bytes(csv_text.encode(encoding))
|
||||
return subprocess.run(
|
||||
[
|
||||
sys.executable, str(SCRIPT), "--xiaozhao",
|
||||
"--csv", str(self.csv), "--urdf", str(self.urdf),
|
||||
"--mjcf", str(self.mjcf), "--actuators", str(self.actuators),
|
||||
*options,
|
||||
],
|
||||
# Explicit paths must work outside the repository working directory.
|
||||
cwd=self.directory,
|
||||
text=True,
|
||||
capture_output=True,
|
||||
check=False,
|
||||
)
|
||||
|
||||
def snapshot(self):
|
||||
return {path: path.read_bytes() for path in self.targets}
|
||||
|
||||
def copied_script_with_models(self):
|
||||
model_root = self.directory / "model"
|
||||
model_root.mkdir()
|
||||
copied_script = model_root / "update_joint_limits.py"
|
||||
copied_script.write_bytes(SCRIPT.read_bytes())
|
||||
for name in ("demobot", "otherbot"):
|
||||
model = model_root / name
|
||||
for subdirectory in ("config", "urdf", "xml"):
|
||||
(model / subdirectory).mkdir(parents=True)
|
||||
(model / "config" / "joint_limits.csv").write_text(
|
||||
"joint_name,lower,upper,unit\nshoulder,-45,90,deg\n",
|
||||
encoding="utf-8",
|
||||
)
|
||||
(model / "urdf" / f"{name}.urdf").write_bytes(URDF)
|
||||
(model / "xml" / f"{name}.xml").write_bytes(MJCF)
|
||||
(model / "xml" / "actuators.xml").write_bytes(ACTUATORS)
|
||||
working_directory = self.directory / "unrelated-working-directory"
|
||||
working_directory.mkdir()
|
||||
return copied_script, model_root, working_directory
|
||||
|
||||
def assert_success(self, result):
|
||||
self.assertEqual(result.returncode, 0, result.stdout + result.stderr)
|
||||
|
||||
def assert_joint_limits(self, joint_name, lower, upper):
|
||||
urdf = ET.parse(self.urdf).getroot()
|
||||
mjcf = ET.parse(self.mjcf).getroot()
|
||||
actuators = ET.parse(self.actuators).getroot()
|
||||
limit = urdf.find(f"joint[@name='{joint_name}']/limit")
|
||||
joint = mjcf.find(f".//worldbody//joint[@name='{joint_name}']")
|
||||
actuator = actuators.find(f"actuator/position[@joint='{joint_name}']")
|
||||
actual_ranges = (
|
||||
(float(limit.get("lower")), float(limit.get("upper"))),
|
||||
tuple(map(float, joint.get("range").split())),
|
||||
tuple(map(float, actuator.get("ctrlrange").split())),
|
||||
)
|
||||
for actual in actual_ranges:
|
||||
self.assertAlmostEqual(actual[0], lower, places=10)
|
||||
self.assertAlmostEqual(actual[1], upper, places=10)
|
||||
|
||||
def test_mixed_units_update_all_targets_and_preserve_other_content(self):
|
||||
before = self.snapshot()
|
||||
result = self.run_cli(
|
||||
"joint_name,lower,upper,unit\n"
|
||||
"shoulder,-90,45,deg\n"
|
||||
"wrist,-0.2,0.3,rad\n"
|
||||
)
|
||||
self.assert_success(result)
|
||||
self.assert_joint_limits("shoulder", -math.pi / 2, math.pi / 4)
|
||||
self.assert_joint_limits("wrist", -0.2, 0.3)
|
||||
# Permit numeric formatting changes only inside the intended attributes.
|
||||
pattern = rb'\b(lower|upper|range|ctrlrange)="[^"]*"'
|
||||
for path, original in before.items():
|
||||
self.assertEqual(
|
||||
re.sub(pattern, rb'\1="LIMIT"', path.read_bytes()),
|
||||
re.sub(pattern, rb'\1="LIMIT"', original),
|
||||
)
|
||||
|
||||
def test_model_selector_resolves_defaults_relative_to_copied_script(self):
|
||||
copied_script, model_root, cwd = self.copied_script_with_models()
|
||||
other_model = model_root / "otherbot"
|
||||
untouched = {
|
||||
path: path.read_bytes() for path in other_model.rglob("*") if path.is_file()
|
||||
}
|
||||
result = subprocess.run(
|
||||
[sys.executable, str(copied_script), "--demobot"],
|
||||
cwd=cwd,
|
||||
text=True,
|
||||
capture_output=True,
|
||||
check=False,
|
||||
)
|
||||
self.assert_success(result)
|
||||
self.urdf = model_root / "demobot" / "urdf" / "demobot.urdf"
|
||||
self.mjcf = model_root / "demobot" / "xml" / "demobot.xml"
|
||||
self.actuators = model_root / "demobot" / "xml" / "actuators.xml"
|
||||
self.assert_joint_limits("shoulder", -math.pi / 4, math.pi / 2)
|
||||
self.assert_joint_limits("wrist", -0.5, 0.5)
|
||||
for path, contents in untouched.items():
|
||||
self.assertEqual(path.read_bytes(), contents)
|
||||
|
||||
def test_missing_unknown_or_multiple_model_selectors_never_write(self):
|
||||
copied_script, model_root, cwd = self.copied_script_with_models()
|
||||
before = {
|
||||
path: path.read_bytes() for path in model_root.rglob("*") if path.is_file()
|
||||
}
|
||||
selections = (
|
||||
(),
|
||||
("--ghostbot",),
|
||||
("--demobot", "--otherbot"),
|
||||
("--demobot", "--ghostbot"),
|
||||
)
|
||||
for selection in selections:
|
||||
with self.subTest(selection=selection):
|
||||
result = subprocess.run(
|
||||
[sys.executable, str(copied_script), *selection],
|
||||
cwd=cwd,
|
||||
text=True,
|
||||
capture_output=True,
|
||||
check=False,
|
||||
)
|
||||
self.assertEqual(result.returncode, 2, result.stdout + result.stderr)
|
||||
self.assertTrue(result.stderr.strip())
|
||||
after = {
|
||||
path: path.read_bytes()
|
||||
for path in model_root.rglob("*") if path.is_file()
|
||||
}
|
||||
self.assertEqual(after, before)
|
||||
|
||||
def test_partial_csv_leaves_unlisted_joint_unchanged(self):
|
||||
result = self.run_cli("joint_name,lower,upper,unit\nwrist,-20,35,deg\n")
|
||||
self.assert_success(result)
|
||||
self.assert_joint_limits("shoulder", -1, 1)
|
||||
self.assert_joint_limits("wrist", math.radians(-20), math.radians(35))
|
||||
|
||||
def test_solidworks_csv_with_bom_skips_root_link(self):
|
||||
result = self.run_cli(
|
||||
"Link Name,Joint Name,Joint Type,Limit Lower,Limit Upper,Limit Effort\n"
|
||||
"base,,,,,\n"
|
||||
"arm,shoulder,revolute,-0.7,0.8,30\n",
|
||||
encoding="utf-8-sig",
|
||||
)
|
||||
self.assert_success(result)
|
||||
self.assert_joint_limits("shoulder", -0.7, 0.8)
|
||||
self.assert_joint_limits("wrist", -0.5, 0.5)
|
||||
|
||||
def test_degree_mjcf_range_keeps_urdf_and_actuator_in_radians(self):
|
||||
self.mjcf.write_bytes(MJCF.replace(b'angle="radian"', b'angle="degree"'))
|
||||
result = self.run_cli("joint_name,lower,upper,unit\nshoulder,-45,90,deg\n")
|
||||
self.assert_success(result)
|
||||
joint = ET.parse(self.mjcf).find(".//worldbody//joint[@name='shoulder']")
|
||||
self.assertEqual(tuple(map(float, joint.get("range").split())), (-45, 90))
|
||||
limit = ET.parse(self.urdf).find("joint[@name='shoulder']/limit")
|
||||
actuator = ET.parse(self.actuators).find("actuator/position[@joint='shoulder']")
|
||||
self.assertAlmostEqual(float(limit.get("lower")), -math.pi / 4, places=10)
|
||||
self.assertAlmostEqual(float(limit.get("upper")), math.pi / 2, places=10)
|
||||
actual = tuple(map(float, actuator.get("ctrlrange").split()))
|
||||
self.assertAlmostEqual(actual[0], -math.pi / 4, places=10)
|
||||
self.assertAlmostEqual(actual[1], math.pi / 2, places=10)
|
||||
|
||||
def test_dry_run_and_repeated_application(self):
|
||||
csv_text = "joint_name,lower,upper,unit\nshoulder,-30,60,deg\n"
|
||||
before = self.snapshot()
|
||||
self.assert_success(self.run_cli(csv_text, "--dry-run"))
|
||||
self.assertEqual(self.snapshot(), before)
|
||||
self.assert_success(self.run_cli(csv_text))
|
||||
applied = self.snapshot()
|
||||
self.assertNotEqual(applied, before)
|
||||
self.assert_success(self.run_cli(csv_text))
|
||||
self.assertEqual(self.snapshot(), applied)
|
||||
|
||||
def test_invalid_rows_never_partially_write(self):
|
||||
prefix = "joint_name,lower,upper,unit\nshoulder,-0.8,0.8,rad\n"
|
||||
invalid_rows = (
|
||||
"typo,-0.1,0.1,rad\n",
|
||||
"shoulder,-0.2,0.2,rad\n",
|
||||
"wrist,0.3,-0.3,rad\n",
|
||||
"wrist,0.3,0.3,rad\n",
|
||||
"wrist,nan,0.3,rad\n",
|
||||
"wrist,-0.3,inf,rad\n",
|
||||
"wrist,-0.3,0.3,turns\n",
|
||||
"wrist,,0.3,rad\n",
|
||||
",-0.3,0.3,rad\n",
|
||||
)
|
||||
for row in invalid_rows:
|
||||
with self.subTest(row=row):
|
||||
before = self.snapshot()
|
||||
result = self.run_cli(prefix + row)
|
||||
self.assertEqual(result.returncode, 2, result.stdout + result.stderr)
|
||||
self.assertTrue(result.stderr.strip())
|
||||
self.assertEqual(self.snapshot(), before)
|
||||
|
||||
def test_missing_joint_in_target_prevents_all_writes(self):
|
||||
cases = (
|
||||
(self.mjcf, b'name="wrist" type="hinge"', b'name="renamed" type="hinge"'),
|
||||
(self.actuators, b'joint="wrist"', b'joint="renamed"'),
|
||||
)
|
||||
for path, old, new in cases:
|
||||
with self.subTest(path=path.name):
|
||||
original = path.read_bytes()
|
||||
path.write_bytes(original.replace(old, new))
|
||||
before = self.snapshot()
|
||||
result = self.run_cli(
|
||||
"joint_name,lower,upper,unit\n"
|
||||
"shoulder,-0.8,0.8,rad\nwrist,-0.3,0.3,rad\n"
|
||||
)
|
||||
self.assertEqual(result.returncode, 2, result.stdout + result.stderr)
|
||||
self.assertEqual(self.snapshot(), before)
|
||||
path.write_bytes(original)
|
||||
|
||||
def test_missing_file_prevents_writing_other_files(self):
|
||||
self.mjcf.unlink()
|
||||
before = {path: path.read_bytes() for path in (self.urdf, self.actuators)}
|
||||
result = self.run_cli("joint_name,lower,upper,unit\nshoulder,-0.8,0.8,rad\n")
|
||||
self.assertEqual(result.returncode, 2, result.stdout + result.stderr)
|
||||
for path, contents in before.items():
|
||||
self.assertEqual(path.read_bytes(), contents)
|
||||
self.assertFalse(self.mjcf.exists())
|
||||
|
||||
def test_disabled_limit_defaults_and_nonunit_gear_prevent_all_writes(self):
|
||||
cases = (
|
||||
(
|
||||
"inherited actuator control limits disabled",
|
||||
self.actuators,
|
||||
ACTUATORS.replace(b'<position kp="100"/>', b'<position kp="100" ctrllimited="false"/>'),
|
||||
),
|
||||
(
|
||||
"inherited joint limits disabled",
|
||||
self.mjcf,
|
||||
MJCF.replace(b" <worldbody>", b' <default><joint limited="false"/></default>\n <worldbody>'),
|
||||
),
|
||||
(
|
||||
"unused class rejected conservatively",
|
||||
self.mjcf,
|
||||
MJCF.replace(
|
||||
b" <worldbody>",
|
||||
b' <default><default class="unused"><joint limited="false"/></default></default>\n <worldbody>',
|
||||
),
|
||||
),
|
||||
(
|
||||
"inherited non-unit transmission gear",
|
||||
self.actuators,
|
||||
ACTUATORS.replace(b'<position kp="100"/>', b'<position kp="100" gear="2"/>'),
|
||||
),
|
||||
)
|
||||
for description, path, contents in cases:
|
||||
with self.subTest(description=description):
|
||||
original = path.read_bytes()
|
||||
try:
|
||||
path.write_bytes(contents)
|
||||
before = self.snapshot()
|
||||
result = self.run_cli(
|
||||
"joint_name,lower,upper,unit\n"
|
||||
"shoulder,-0.8,0.8,rad\nwrist,-0.3,0.3,rad\n"
|
||||
)
|
||||
self.assertEqual(result.returncode, 2, result.stdout + result.stderr)
|
||||
self.assertTrue(result.stderr.strip())
|
||||
self.assertEqual(self.snapshot(), before)
|
||||
finally:
|
||||
path.write_bytes(original)
|
||||
|
||||
def prepared_update(self):
|
||||
with mock.patch.object(sys, "path", [str(SCRIPT.parent), *sys.path]):
|
||||
import update_joint_limits
|
||||
documents = [
|
||||
update_joint_limits.XmlFile(self.urdf, "robot"),
|
||||
update_joint_limits.XmlFile(self.mjcf, "mujoco"),
|
||||
update_joint_limits.XmlFile(self.actuators, "mujoco"),
|
||||
]
|
||||
update_joint_limits.prepare(
|
||||
[update_joint_limits.Limits("shoulder", -0.8, 0.8)], *documents
|
||||
)
|
||||
return update_joint_limits, documents
|
||||
|
||||
def test_second_file_replace_failure_rolls_back_and_removes_temporary_files(self):
|
||||
updater, documents = self.prepared_update()
|
||||
before = self.snapshot()
|
||||
real_replace = updater.os.replace
|
||||
calls = 0
|
||||
|
||||
def replace_with_commit_failure(source, destination):
|
||||
nonlocal calls
|
||||
calls += 1
|
||||
if calls == 2:
|
||||
raise OSError("simulated second commit failure")
|
||||
return real_replace(source, destination)
|
||||
|
||||
with mock.patch.object(updater.os, "replace", side_effect=replace_with_commit_failure):
|
||||
with self.assertRaisesRegex(OSError, "second commit failure"):
|
||||
updater.write_files(documents)
|
||||
|
||||
self.assertEqual(calls, 3) # First commit, failed second commit, rollback.
|
||||
self.assertEqual(self.snapshot(), before)
|
||||
self.assertEqual(list(self.directory.glob(".*.tmp")), [])
|
||||
|
||||
def test_failed_rollback_retains_original_backup_for_recovery(self):
|
||||
updater, documents = self.prepared_update()
|
||||
before = self.snapshot()
|
||||
real_replace = updater.os.replace
|
||||
calls = 0
|
||||
|
||||
def replace_with_commit_and_rollback_failure(source, destination):
|
||||
nonlocal calls
|
||||
calls += 1
|
||||
if calls in (2, 3):
|
||||
raise OSError("simulated replacement failure")
|
||||
return real_replace(source, destination)
|
||||
|
||||
with mock.patch.object(updater.os, "replace", side_effect=replace_with_commit_and_rollback_failure):
|
||||
with self.assertRaisesRegex(OSError, "Original backups retained") as raised:
|
||||
updater.write_files(documents)
|
||||
|
||||
self.assertEqual(calls, 3)
|
||||
backups = list(self.directory.glob(".*.tmp"))
|
||||
self.assertEqual(len(backups), 1)
|
||||
self.assertEqual(backups[0].read_bytes(), before[self.urdf])
|
||||
self.assertIn(str(backups[0]), str(raised.exception))
|
||||
self.assertEqual(self.urdf.read_bytes(), documents[0].after())
|
||||
self.assertEqual(self.mjcf.read_bytes(), before[self.mjcf])
|
||||
self.assertEqual(self.actuators.read_bytes(), before[self.actuators])
|
||||
|
||||
def test_read_only_crlf_urdf_preserves_permissions_and_line_endings(self):
|
||||
self.urdf.write_bytes(URDF.replace(b"\n", b"\r\n"))
|
||||
self.urdf.chmod(0o444)
|
||||
result = self.run_cli("joint_name,lower,upper,unit\nshoulder,-0.6,0.6,rad\n")
|
||||
self.assert_success(result)
|
||||
self.assert_joint_limits("shoulder", -0.6, 0.6)
|
||||
self.assertEqual(stat.S_IMODE(self.urdf.stat().st_mode), 0o444)
|
||||
updated = self.urdf.read_bytes()
|
||||
self.assertNotIn(b"\n", updated.replace(b"\r\n", b""))
|
||||
self.assertIn(b"<!-- Keep the source comment and formatting. -->", updated)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Loading…
Reference in New Issue
Block a user