克隆后还缺仿真安装树和两边的编译目录。把 build、build_sim、install_sim 一并放进仓库;仿真入口不再写死本机 conda,build 里指向源码的链接改成相对路径。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
# generated from rosidl_cmake/cmake/rosidl_cmake-extras.cmake.in
|
||||
|
||||
set(arm_msgs_IDL_FILES "msg/ArmStatus.idl;msg/JointCommand.idl;msg/GripperCommand.idl;msg/GripperStatus.idl;msg/HoleDetection.idl;msg/HoleDetections.idl;msg/TactileStatus.idl;srv/SetNamedPose.idl;srv/GetArmState.idl;srv/GripperExecute.idl;srv/SwitchTool.idl;action/MoveToPose.idl;action/FollowJointTrajectory.idl;action/CompliantDescent.idl")
|
||||
set(arm_msgs_INTERFACE_FILES "msg/ArmStatus.msg;msg/JointCommand.msg;msg/GripperCommand.msg;msg/GripperStatus.msg;msg/HoleDetection.msg;msg/HoleDetections.msg;msg/TactileStatus.msg;srv/SetNamedPose.srv;srv/SetNamedPose_Request.msg;srv/SetNamedPose_Response.msg;srv/GetArmState.srv;srv/GetArmState_Request.msg;srv/GetArmState_Response.msg;srv/GripperExecute.srv;srv/GripperExecute_Request.msg;srv/GripperExecute_Response.msg;srv/SwitchTool.srv;srv/SwitchTool_Request.msg;srv/SwitchTool_Response.msg;action/MoveToPose.action;action/FollowJointTrajectory.action;action/CompliantDescent.action")
|
||||
@@ -0,0 +1,49 @@
|
||||
# generated from
|
||||
# rosidl_cmake/cmake/template/rosidl_cmake_export_typesupport_libraries.cmake.in
|
||||
|
||||
set(_exported_typesupport_libraries
|
||||
"__rosidl_typesupport_fastrtps_c:arm_msgs__rosidl_typesupport_fastrtps_c;__rosidl_typesupport_fastrtps_cpp:arm_msgs__rosidl_typesupport_fastrtps_cpp")
|
||||
|
||||
# populate arm_msgs_LIBRARIES_<suffix>
|
||||
if(NOT _exported_typesupport_libraries STREQUAL "")
|
||||
# loop over typesupport libraries
|
||||
foreach(_tuple ${_exported_typesupport_libraries})
|
||||
string(REPLACE ":" ";" _tuple "${_tuple}")
|
||||
list(GET _tuple 0 _suffix)
|
||||
list(GET _tuple 1 _library)
|
||||
|
||||
if(NOT IS_ABSOLUTE "${_library}")
|
||||
# search for library target relative to this CMake file
|
||||
set(_lib "NOTFOUND")
|
||||
find_library(
|
||||
_lib NAMES "${_library}"
|
||||
PATHS "${arm_msgs_DIR}/../../../lib"
|
||||
NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH
|
||||
)
|
||||
|
||||
if(NOT _lib)
|
||||
# the library wasn't found
|
||||
message(FATAL_ERROR
|
||||
"Package 'arm_msgs' exports the typesupport library '${_library}' which couldn't be found")
|
||||
elseif(NOT IS_ABSOLUTE "${_lib}")
|
||||
# the found library must be an absolute path
|
||||
message(FATAL_ERROR
|
||||
"Package 'arm_msgs' found the typesupport library '${_library}' at '${_lib}' "
|
||||
"which is not an absolute path")
|
||||
elseif(NOT EXISTS "${_lib}")
|
||||
# the found library must exist
|
||||
message(FATAL_ERROR "Package 'arm_msgs' found the typesupport library '${_lib}' which doesn't exist")
|
||||
else()
|
||||
list(APPEND arm_msgs_LIBRARIES${_suffix} ${_cfg} "${_lib}")
|
||||
endif()
|
||||
|
||||
else()
|
||||
if(NOT EXISTS "${_library}")
|
||||
# the found library must exist
|
||||
message(WARNING "Package 'arm_msgs' exports the typesupport library '${_library}' which doesn't exist")
|
||||
else()
|
||||
list(APPEND arm_msgs_LIBRARIES${_suffix} "${_library}")
|
||||
endif()
|
||||
endif()
|
||||
endforeach()
|
||||
endif()
|
||||
@@ -0,0 +1,23 @@
|
||||
# generated from
|
||||
# rosidl_cmake/cmake/template/rosidl_cmake_export_typesupport_targets.cmake.in
|
||||
|
||||
set(_exported_typesupport_targets
|
||||
"__rosidl_generator_c:arm_msgs__rosidl_generator_c;__rosidl_typesupport_fastrtps_c:arm_msgs__rosidl_typesupport_fastrtps_c;__rosidl_typesupport_introspection_c:arm_msgs__rosidl_typesupport_introspection_c;__rosidl_typesupport_c:arm_msgs__rosidl_typesupport_c;__rosidl_generator_cpp:arm_msgs__rosidl_generator_cpp;__rosidl_typesupport_fastrtps_cpp:arm_msgs__rosidl_typesupport_fastrtps_cpp;__rosidl_typesupport_introspection_cpp:arm_msgs__rosidl_typesupport_introspection_cpp;__rosidl_typesupport_cpp:arm_msgs__rosidl_typesupport_cpp;__rosidl_generator_py:arm_msgs__rosidl_generator_py")
|
||||
|
||||
# populate arm_msgs_TARGETS_<suffix>
|
||||
if(NOT _exported_typesupport_targets STREQUAL "")
|
||||
# loop over typesupport targets
|
||||
foreach(_tuple ${_exported_typesupport_targets})
|
||||
string(REPLACE ":" ";" _tuple "${_tuple}")
|
||||
list(GET _tuple 0 _suffix)
|
||||
list(GET _tuple 1 _target)
|
||||
|
||||
set(_target "arm_msgs::${_target}")
|
||||
if(NOT TARGET "${_target}")
|
||||
# the exported target must exist
|
||||
message(WARNING "Package 'arm_msgs' exports the typesupport target '${_target}' which doesn't exist")
|
||||
else()
|
||||
list(APPEND arm_msgs_TARGETS${_suffix} "${_target}")
|
||||
endif()
|
||||
endforeach()
|
||||
endif()
|
||||
@@ -0,0 +1,6 @@
|
||||
|
||||
bool success
|
||||
string mode
|
||||
float64[] joint_positions
|
||||
geometry_msgs/PoseStamped ee_pose
|
||||
string message
|
||||
@@ -0,0 +1 @@
|
||||
arm_msgs/GripperCommand command
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
bool success
|
||||
string message
|
||||
arm_msgs/GripperStatus status
|
||||
@@ -0,0 +1,4 @@
|
||||
# Move to a named pose defined in config (home, ready, inspect, pos_left, ...)
|
||||
string pose_name
|
||||
float64 velocity_scale # (0, 1], 1 = full speed
|
||||
float64 acceleration_scale
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
bool success
|
||||
string message
|
||||
@@ -0,0 +1,11 @@
|
||||
# 切换到已保存的工具坐标系(如 tool1)。
|
||||
#
|
||||
# 背景:非夕的工具坐标系(TCP + 质量 + 质心)在 Studio 里预先配好并命名,
|
||||
# RDK 只提供「按名字切换」一个操作。通止规装配要求工具系全程垂直向下锁定,
|
||||
# 所以在流程开始前必须确认已切到正确的工具。
|
||||
#
|
||||
# 实现:arm_driver_flexiv 调用 scripts/rdk_switch_tool.py(子进程,rdk_py310)。
|
||||
# 注意 RDK 是独占访问,切换时臂必须处于 IDLE 且没有其它进程连着 RDK。
|
||||
string tool_name # Studio 里已保存的工具名。空字符串 = 只查询当前状态,不切换
|
||||
|
||||
string sn # 目标臂 SN(如 Rizon4-063989)。空 = 用 site.yaml 的 robot.sn
|
||||
@@ -0,0 +1,6 @@
|
||||
|
||||
bool success # 是否已达到目标状态(已在该工具上也算成功)
|
||||
string message # 失败原因;成功时为当前工具名说明
|
||||
string current_tool # 操作后的当前工具名
|
||||
float64 tool_mass_kg # 该工具的质量(kg);查询不到为 0
|
||||
float64[3] tool_com_m # 该工具的质心(法兰系,m);查询不到为全 0
|
||||
Reference in New Issue
Block a user