|
@@ -20,9 +20,9 @@ var (
|
|
TopicOfObstacleDetection = "/obstacle_detection"
|
|
TopicOfObstacleDetection = "/obstacle_detection"
|
|
RuleOfObstacleDetection []func(data *std_msgs.UInt8) string
|
|
RuleOfObstacleDetection []func(data *std_msgs.UInt8) string
|
|
TopicOfSysInfo = "/sys_info"
|
|
TopicOfSysInfo = "/sys_info"
|
|
- RuleOfSysInfo []func(data *ros_message.SysInfo) string
|
|
|
|
|
|
+ RuleOfSysInfo []func(data *pji_msgs.SysInfo) string
|
|
TopicOfLocateInfo = "/locate_info"
|
|
TopicOfLocateInfo = "/locate_info"
|
|
- RuleOfLocateInfo []func(data *ros_message.LocateInfo) string
|
|
|
|
|
|
+ RuleOfLocateInfo []func(data *pji_msgs.LocateInfo) string
|
|
TopicOfImu = "/imu"
|
|
TopicOfImu = "/imu"
|
|
RuleOfImu []func(data *sensor_msgs.Imu) string
|
|
RuleOfImu []func(data *sensor_msgs.Imu) string
|
|
TopicOfDiagnostics = "/diagnostics"
|
|
TopicOfDiagnostics = "/diagnostics"
|
|
@@ -75,10 +75,10 @@ func InitTriggerConfig() {
|
|
f := rule.(func(data *std_msgs.UInt8) string)
|
|
f := rule.(func(data *std_msgs.UInt8) string)
|
|
RuleOfObstacleDetection = append(RuleOfObstacleDetection, f)
|
|
RuleOfObstacleDetection = append(RuleOfObstacleDetection, f)
|
|
} else if TopicOfSysInfo == topic2 {
|
|
} else if TopicOfSysInfo == topic2 {
|
|
- f := rule.(func(data *ros_message.SysInfo) string)
|
|
|
|
|
|
+ f := rule.(func(data *pji_msgs.SysInfo) string)
|
|
RuleOfSysInfo = append(RuleOfSysInfo, f)
|
|
RuleOfSysInfo = append(RuleOfSysInfo, f)
|
|
} else if TopicOfLocateInfo == topic2 {
|
|
} else if TopicOfLocateInfo == topic2 {
|
|
- f := rule.(func(data *ros_message.LocateInfo) string)
|
|
|
|
|
|
+ f := rule.(func(data *pji_msgs.LocateInfo) string)
|
|
RuleOfLocateInfo = append(RuleOfLocateInfo, f)
|
|
RuleOfLocateInfo = append(RuleOfLocateInfo, f)
|
|
} else if TopicOfImu == topic2 {
|
|
} else if TopicOfImu == topic2 {
|
|
f := rule.(func(data *sensor_msgs.Imu) string)
|
|
f := rule.(func(data *sensor_msgs.Imu) string)
|