Rosbridge和roslibjs:无法加载包的清单

时间:2014-06-30 08:48:45

标签: ros

我正在尝试javascript和Ros之间的沟通。

我使用的是示例代码 “github.com/RobotWebTools/roslibjs/blob/develop/examples/simple.html” 有了这些变化:

var cmdVel = new ROSLIB.Topic({
    ros : ros,
    name : '/fromRos2Can',
    messageType : 'ackermann_msgs/AckermannDrive'    
  });

 var twist = new ROSLIB.Message({
    speed:1.0,
    acceleration:2.0,
    jerk:3.0,
    steering_angle:4.0,
    steering_angle_velocity:5.2
  });

我收到以下两条错误消息:

[ERROR] [WallTime: 1404116229.210210] [Client 2] [id: advertise:/fromRos2Can:1] advertise: Unable to load the manifest for package ackermann_msgs. Caused by: ackermann_msgs

[ERROR] [WallTime: 1404116229.213060] [Client 2] [id: publish:/fromRos2Can:2] publish: Cannot infer topic type for topic /fromRos2Can as it is not yet advertised

我的c ++程序适用于AckermannDrive.msg ,带有std_msg / String的测试也适用

我的错误在哪里? 感谢

1 个答案:

答案 0 :(得分:0)

answer.ros.org中有a very similar post个帖子。由于该网站是ROS的官方QA论坛,我建议继续在那里。