def to_joint_state(state):
if isinstance(state, RobotState):
state = state.joint_state
elif not isinstance(state, JointState):
raise TypeError("ROSBridge.to_joint_trajectory only accepts RT or JT, got {}".format(type(trajectory)))
return state
评论列表
文章目录