|
@@ -108,6 +108,13 @@ func InitTriggerConfig() {
|
|
continue
|
|
continue
|
|
}
|
|
}
|
|
RuleOfTaskFeedbackInfo = append(RuleOfTaskFeedbackInfo, f)
|
|
RuleOfTaskFeedbackInfo = append(RuleOfTaskFeedbackInfo, f)
|
|
|
|
+ } else if TopicOfWheelOdom == topic2 { // 9
|
|
|
|
+ f, ok := rule.(func(data *nav_msgs.Odometry) string)
|
|
|
|
+ if ok != true {
|
|
|
|
+ c_log.GlobalLogger.Error("插件", triggerLocalPath, "中的Topic方法必须是(func(data *nav_msgs.Odometry) string):", err)
|
|
|
|
+ continue
|
|
|
|
+ }
|
|
|
|
+ RuleOfWheelOdom = append(RuleOfWheelOdom, f)
|
|
} else {
|
|
} else {
|
|
c_log.GlobalLogger.Error("未知的topic:", topic2)
|
|
c_log.GlobalLogger.Error("未知的topic:", topic2)
|
|
continue
|
|
continue
|