在运行easy_handeye进行外参标定时出现下述问题:一直出现连接不上move_group的情况,不能与get_planning_scene进行连接。
配置:Ubuntu20.04,usb摄像头,并且创建了arm的命名空间
RuntimeError: Unable to connect to move_group action server 'move_group' within allotted time (5s)
[ INFO] [1744621976.150162129]: Starting planning scene monitor
[ INFO] [1744621976.151610773]: Listening to '/move_group/monitored_planning_scene'
[ INFO] [1744621976.513901814]: waitForService: Service [/arm/get_planning_scene] has not been advertised, waiting...
[easy_handeye_calibration_server_robot-9] process has died [pid 25357, exit code 1, cmd /home/rosnoetic/robot_arm/devel/lib/easy_handeye/robot.py __name:=easy_handeye_calibration_server_robot __log:=/home/rosnoetic/.ros/log/b75bb3b0-190a-11f0-afcb-2b2a40e7ea65/easy_handeye_calibration_server_robot-9.log].
log file: /home/rosnoetic/.ros/log/b75bb3b0-190a-11f0-afcb-2b2a40e7ea65/easy_handeye_calibration_server_robot-9*.log
[ WARN] [1744621980.039001703]: Waiting for /arm/gripper_controller/follow_joint_trajectory to come up...
[ INFO] [1744621981.078473285]: Failed to call service get_planning_scene, have you launched move_group or called psm.providePlanningSceneService()?
[ INFO] [1744621981.079951450]: Constructing new MoveGroup connection for group 'arm' in namespace ''
[ INFO] [1744621981.514299143]: Failed to call service get_planning_scene, have you launched move_group or called psm.providePlanningSceneService()?
[ INFO] [1744621981.514404844]: Constructing new MoveGroup connection for group 'arm' in namespace ''
节点名称如下:
/arm/arm_controller_spawner
/arm/move_group
/arm/robot_state_publisher
/arm/rviz_robotics_24347_4821317757087325167
/arm/trajectory_follower
/arm_eye_on_hand/calibration_mover
/arm_eye_on_hand/easy_handeye_calibration_server
/arm_eye_on_hand/namespace_robotics_16889_5936331863435735396_rqt
/arm_eye_on_hand/namespace_robotics_17888_182318362578252338_rqt
/arm_eye_on_hand/namespace_robotics_19004_7723856264571273737_rqt
/arm_eye_on_hand/namespace_robotics_21258_7753139789221984879_rqt
/arm_eye_on_hand/namespace_robotics_22393_2614925901645531653_rqt
/arm_eye_on_hand/namespace_robotics_23579_1509722866506207725_rqt
/arm_eye_on_hand/namespace_robotics_24347_2037943114392681466_rqt
/aruco_tracker
/dummy_handeye
/rosout
/rviz_robotics_24347_3722348409959181216
<launch>
<arg name="namespace_prefix" default="arm" />
<arg name="marker_size" doc="Size of the ArUco marker used, in meters" default="0.05"/>
<arg name="marker_id" doc="The ID of the ArUco marker used" default="12"/>
<arg name="eye" default="left"/>
<!-- start the USB -->
<include file="$(find camera_vision)/launch/usb_cam_with_calibration.launch" />
<!--找到你相机的启动文件-->
<!-- start ArUco -->
<node name="aruco_tracker" pkg="aruco_ros" type="single">
<remap from="/camera_info" to="/usb_cam/camera_info" />
<remap from="/image" to="/usb_cam/image_raw" />
<param name="image_is_rectified" value="true"/>
<param name="marker_size" value="0.05"/> <!--这个地方是你标定板的尺寸-->
<param name="marker_id" value="12"/> <!--这个地方是你标定板的id-->
<param name="reference_frame" value="usb_cam"/>
<param name="camera_frame" value="usb_cam"/>
<param name="marker_frame" value="camera_marker" />
</node>
<!-- start the robot -->
<include file="$(find robot_description)/launch/arm_bringup_moveit.launch" />
<!--找到你启动机械臂的文件-->
<!-- <include file="$(find arm_moveit_config)/launch/moveit_planning_execution.launch" /> -->
<!--找到你启moveit的文件-->
<!-- </include> -->
<!-- start easy_handeye -->
<include file="$(find easy_handeye)/launch/calibrate.launch" >
<arg name="namespace_prefix" value="$(arg namespace_prefix)" />
<arg name="eye_on_hand" value="true" />
<!--眼在手上,此处true-->
<arg name="tracking_base_frame" value="usb_cam" />
<arg name="tracking_marker_frame" value="camera_marker" />
<arg name="robot_base_frame" value="base_link" />
<arg name="robot_effector_frame" value="tool_center_frame" />
<arg name="freehand_robot_movement" value="false" />
<arg name="robot_velocity_scaling" value="0.5" />
<arg name="robot_acceleration_scaling" value="0.5" />
<arg name="move_group_namespace" value="/arm" />
<arg name="move_group" value="arm" />
</include>
</launch>