spawner: error: too few arguments [controller_spawner-4] process has died [pid 19013, exit code 2, c

用moveit生成配置文件后,启动roslaunch arm4 demo_gazebo.com报错,如下:

spawner: error: too few arguments
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
[controller_spawner-4] process has died [pid 26682, exit code 2, cmd /opt/ros/melodic/lib/controller_manager/spawner __name:=controller_spawner __log:=/home/will/.ros/log/44dc526e-8146-11eb-9ec2-b8ca3a8092a4/controller_spawner-4.log].
log file: /home/will/.ros/log/44dc526e-8146-11eb-9ec2-b8ca3a8092a4/controller_spawner-4*.log

后来检查了一下,是由于URDF文件有问题引起的,原来的URDF文件是由Solidworks生成的,在base_link中会添加物理属性,格式如下。但是有时运行gazebo的时候又提示说不能在base link中添加inertial的属性,我就把这部分给去掉,把xyz数值写到origin里面,这就造成了错误。实际用源文件就是对的。

<robot
  name="arm4">
  <link
    name="base_link">

    <inertial>
      <origin
        xyz="-0.035038 0.021271 0.26621"
        rpy="0 0 0" />
      <mass
        value="9.7716" />
      <inertia
        ixx="0.027565"
        ixy="-7.594E-06"
        ixz="-2.442E-05"
        iyy="0.01906"
        iyz="4.9006E-05"
        izz="0.04123" />
    </inertial>
    <visual>
      <origin
        xyz="0 0 0"
        rpy="0 0 0" />
      <geometry>

记录一下,以后遇到这种error,也有可能是URDF文件有问题。

roslaunch moveit_setup_assistant setup_assistant.launch ... logging to /home/zjh/.ros/log/513e5cbe-09c0-11ee-a43a-e7f821379d26/roslaunch-zjh-6655.log Checking log directory for disk usage. This may take a while. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB. started roslaunch server http://zjh:40045/ SUMMARY ======== PARAMETERS * /rosdistro: noetic * /rosversion: 1.16.0 NODES / moveit_setup_assistant (moveit_setup_assistant/moveit_setup_assistant) auto-starting new master process[master]: started with pid [6681] ROS_MASTER_URI=http://localhost:11311 setting /run_id to 513e5cbe-09c0-11ee-a43a-e7f821379d26 process[rosout-1]: started with pid [6691] started core service [/rosout] process[moveit_setup_assistant-2]: started with pid [6694] /opt/ros/noetic/lib/moveit_setup_assistant/moveit_setup_assistant: error while loading shared libraries: libfcl.so.0.6: cannot open shared object file: No such file or directory ================================================================================REQUIRED process [moveit_setup_assistant-2] has died! process has died [pid 6694, exit code 127, cmd /opt/ros/noetic/lib/moveit_setup_assistant/moveit_setup_assistant __name:=moveit_setup_assistant __log:=/home/zjh/.ros/log/513e5cbe-09c0-11ee-a43a-e7f821379d26/moveit_setup_assistant-2.log]. log file: /home/zjh/.ros/log/513e5cbe-09c0-11ee-a43a-e7f821379d26/moveit_setup_assistant-2*.log Initiating shutdown! ================================================================================ [moveit_setup_assistant-2] killing on exit [rosout-1] killing on exit [master] killing on exit shutting down processing monitor... ... shutting down processing monitor complete done
06-14
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值