我正在尝试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的测试也适用。
我的错误在哪里? 感谢