sim2bot.RobotInfo¶
RobotInfo
dataclass
¶
Model-derived metadata for one robot announced by the simulator.
Attributes:
-
index(int) –Current scene command address. Pass it as
robot=to commands. -
id(str) –Stable identity while this scene instance is loaded.
-
name(str) –Human-readable model or instance name.
-
dof(int) –Number of controllable arm joints, excluding gripper joints.
-
joint_names(list[str]) –Joint names in the exact order expected by commands.
-
joint_limits(list[Optional[list[float]]]) –Per-joint
[lower, upper]limits in radians, orNonefor an unlimited joint. -
home(list[float]) –Model-defined home target in radians and command order.
-
has_gripper(bool) –Whether the robot exposes a supported gripper.
-
locomotion(str) –Capability label such as
"arm", mobile, or aerial. -
base_dof(int) –Number of supported mobile or aerial base degrees of freedom.
-
category(str) –Sim2Bot catalog category.
-
manufacturer(str) –Authored manufacturer, when declared.
-
license(str) –SPDX licence identifier, when declared.
-
source_url(str) –Upstream model source, when declared.
-
snapshot_digest(str) –SHA-256 identity of the exact bundled model snapshot.
-
capabilities(list[str]) –Verified Sim2Bot capability labels.
-
arm_actuators(list[str]) –Authored arm actuator names in command order.
-
gripper_actuators(list[str]) –Authored gripper actuator names.
-
tcp_sites(list[str]) –Authored tool-centre-point site candidates.
-
end_effector_bodies(list[str]) –Authored end-effector body candidates.
-
keyframes(list[str]) –Named MJCF poses such as
homeorrest. -
model_cameras(list[str]) –Cameras compiled as part of this robot model.
-
model_sensors(list[str]) –Sensors compiled as part of this robot model.
Source code in sim2bot/client.py
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 | |
Practical examples¶
Examples use objects discovered from the current scene rather than hard-coded robot metadata.
Pair names with limits
Guidance¶
Usage tip
Use index for current commands and id for correlating a specific scene instance in your application.