ros

执行py脚本报错 The publisher should be created with an explicit keyword argument 'queue_size'.

错误提示
SyntaxWarning: The publisher should be created with an explicit keyword argument 'queue_size'.

 
已邀请:

lalala

赞同来自:

解决方法
self.__vel_publish__ = rospy.Publisher('~cmd_vel', Twist)
//增加队列大小的定义
self.__vel_publish__ = rospy.Publisher('~cmd_vel', Twist, queue_size=10)
参考资料
 
https://github.com/RethinkRobotics/baxter_examples/pull/34
 

要回复问题请先登录注册