|
@@ -78,7 +78,7 @@ func ProduceWindow() {
|
|
c_log.GlobalLogger.Info("创建订阅者订阅话题:" + topic)
|
|
c_log.GlobalLogger.Info("创建订阅者订阅话题:" + topic)
|
|
|
|
|
|
// 1
|
|
// 1
|
|
- if topic == masterConfig.TopicOfAmrPose && (len(masterConfig.RuleOfAmrPose1) > 0 || len(masterConfig.RuleOfAmrPose2) > 0 || len(masterConfig.RuleOfAmrPose3) > 0) {
|
|
|
|
|
|
+ if topic == masterConfig.TopicOfAmrPose && (len(masterConfig.RuleOfAmrPose1) > 0 || len(masterConfig.RuleOfAmrPose3) > 0) {
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
Node: commonConfig.RosNode,
|
|
Node: commonConfig.RosNode,
|
|
Topic: topic,
|
|
Topic: topic,
|
|
@@ -120,7 +120,6 @@ func ProduceWindow() {
|
|
// 2
|
|
// 2
|
|
if topic == masterConfig.TopicOfBoundingBoxesFast &&
|
|
if topic == masterConfig.TopicOfBoundingBoxesFast &&
|
|
(len(masterConfig.RuleOfBoundingBoxesFast1) > 0 ||
|
|
(len(masterConfig.RuleOfBoundingBoxesFast1) > 0 ||
|
|
- len(masterConfig.RuleOfBoundingBoxesFast2) > 0 ||
|
|
|
|
len(masterConfig.RuleOfBoundingBoxesFast3) > 0) {
|
|
len(masterConfig.RuleOfBoundingBoxesFast3) > 0) {
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
Node: commonConfig.RosNode,
|
|
Node: commonConfig.RosNode,
|
|
@@ -163,7 +162,6 @@ func ProduceWindow() {
|
|
// 3
|
|
// 3
|
|
if topic == masterConfig.TopicOfCameraFault &&
|
|
if topic == masterConfig.TopicOfCameraFault &&
|
|
(len(masterConfig.RuleOfCameraFault1) > 0 ||
|
|
(len(masterConfig.RuleOfCameraFault1) > 0 ||
|
|
- len(masterConfig.RuleOfCameraFault2) > 0 ||
|
|
|
|
len(masterConfig.RuleOfCameraFault3) > 0) {
|
|
len(masterConfig.RuleOfCameraFault3) > 0) {
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
Node: commonConfig.RosNode,
|
|
Node: commonConfig.RosNode,
|
|
@@ -207,7 +205,6 @@ func ProduceWindow() {
|
|
// 4
|
|
// 4
|
|
if topic == masterConfig.TopicOfCanData &&
|
|
if topic == masterConfig.TopicOfCanData &&
|
|
(len(masterConfig.RuleOfCanData1) > 0 ||
|
|
(len(masterConfig.RuleOfCanData1) > 0 ||
|
|
- len(masterConfig.RuleOfCanData2) > 0 ||
|
|
|
|
len(masterConfig.RuleOfCanData3) > 0) {
|
|
len(masterConfig.RuleOfCanData3) > 0) {
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
Node: commonConfig.RosNode,
|
|
Node: commonConfig.RosNode,
|
|
@@ -251,7 +248,6 @@ func ProduceWindow() {
|
|
// 5
|
|
// 5
|
|
if topic == masterConfig.TopicOfCh128x1LslidarPointCloud &&
|
|
if topic == masterConfig.TopicOfCh128x1LslidarPointCloud &&
|
|
(len(masterConfig.RuleOfCh128x1LslidarPointCloud1) > 0 ||
|
|
(len(masterConfig.RuleOfCh128x1LslidarPointCloud1) > 0 ||
|
|
- len(masterConfig.RuleOfCh128x1LslidarPointCloud2) > 0 ||
|
|
|
|
len(masterConfig.RuleOfCh128x1LslidarPointCloud3) > 0) {
|
|
len(masterConfig.RuleOfCh128x1LslidarPointCloud3) > 0) {
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
Node: commonConfig.RosNode,
|
|
Node: commonConfig.RosNode,
|
|
@@ -295,7 +291,6 @@ func ProduceWindow() {
|
|
// 6
|
|
// 6
|
|
if topic == masterConfig.TopicOfCh64wLLslidarPointCloud &&
|
|
if topic == masterConfig.TopicOfCh64wLLslidarPointCloud &&
|
|
(len(masterConfig.RuleOfCh64wLLslidarPointCloud1) > 0 ||
|
|
(len(masterConfig.RuleOfCh64wLLslidarPointCloud1) > 0 ||
|
|
- len(masterConfig.RuleOfCh64wLLslidarPointCloud2) > 0 ||
|
|
|
|
len(masterConfig.RuleOfCh64wLLslidarPointCloud3) > 0) {
|
|
len(masterConfig.RuleOfCh64wLLslidarPointCloud3) > 0) {
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
Node: commonConfig.RosNode,
|
|
Node: commonConfig.RosNode,
|
|
@@ -339,7 +334,6 @@ func ProduceWindow() {
|
|
// 7
|
|
// 7
|
|
if topic == masterConfig.TopicOfCh64wLScan &&
|
|
if topic == masterConfig.TopicOfCh64wLScan &&
|
|
(len(masterConfig.RuleOfCh64wLScan1) > 0 ||
|
|
(len(masterConfig.RuleOfCh64wLScan1) > 0 ||
|
|
- len(masterConfig.RuleOfCh64wLScan2) > 0 ||
|
|
|
|
len(masterConfig.RuleOfCh64wLScan3) > 0) {
|
|
len(masterConfig.RuleOfCh64wLScan3) > 0) {
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
Node: commonConfig.RosNode,
|
|
Node: commonConfig.RosNode,
|
|
@@ -383,7 +377,6 @@ func ProduceWindow() {
|
|
// 8
|
|
// 8
|
|
if topic == masterConfig.TopicOfCh64wRLslidarPointCloud &&
|
|
if topic == masterConfig.TopicOfCh64wRLslidarPointCloud &&
|
|
(len(masterConfig.RuleOfCh64wRLslidarPointCloud1) > 0 ||
|
|
(len(masterConfig.RuleOfCh64wRLslidarPointCloud1) > 0 ||
|
|
- len(masterConfig.RuleOfCh64wRLslidarPointCloud2) > 0 ||
|
|
|
|
len(masterConfig.RuleOfCh64wRLslidarPointCloud3) > 0) {
|
|
len(masterConfig.RuleOfCh64wRLslidarPointCloud3) > 0) {
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
Node: commonConfig.RosNode,
|
|
Node: commonConfig.RosNode,
|
|
@@ -427,7 +420,6 @@ func ProduceWindow() {
|
|
// 9
|
|
// 9
|
|
if topic == masterConfig.TopicOfCh64wRScan &&
|
|
if topic == masterConfig.TopicOfCh64wRScan &&
|
|
(len(masterConfig.RuleOfCh64wRScan1) > 0 ||
|
|
(len(masterConfig.RuleOfCh64wRScan1) > 0 ||
|
|
- len(masterConfig.RuleOfCh64wRScan2) > 0 ||
|
|
|
|
len(masterConfig.RuleOfCh64wRScan3) > 0) {
|
|
len(masterConfig.RuleOfCh64wRScan3) > 0) {
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
Node: commonConfig.RosNode,
|
|
Node: commonConfig.RosNode,
|
|
@@ -470,7 +462,6 @@ func ProduceWindow() {
|
|
// 10
|
|
// 10
|
|
if topic == masterConfig.TopicOfCicvLidarclusterMovingObjects &&
|
|
if topic == masterConfig.TopicOfCicvLidarclusterMovingObjects &&
|
|
(len(masterConfig.RuleOfCicvLidarclusterMovingObjects1) > 0 ||
|
|
(len(masterConfig.RuleOfCicvLidarclusterMovingObjects1) > 0 ||
|
|
- len(masterConfig.RuleOfCicvLidarclusterMovingObjects2) > 0 ||
|
|
|
|
len(masterConfig.RuleOfCicvLidarclusterMovingObjects3) > 0) {
|
|
len(masterConfig.RuleOfCicvLidarclusterMovingObjects3) > 0) {
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
Node: commonConfig.RosNode,
|
|
Node: commonConfig.RosNode,
|
|
@@ -611,7 +602,6 @@ func ProduceWindow() {
|
|
// 13
|
|
// 13
|
|
if topic == masterConfig.TopicOfCloudClusters &&
|
|
if topic == masterConfig.TopicOfCloudClusters &&
|
|
(len(masterConfig.RuleOfCloudClusters1) > 0 ||
|
|
(len(masterConfig.RuleOfCloudClusters1) > 0 ||
|
|
- len(masterConfig.RuleOfCloudClusters2) > 0 ||
|
|
|
|
len(masterConfig.RuleOfCloudClusters3) > 0) {
|
|
len(masterConfig.RuleOfCloudClusters3) > 0) {
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
Node: commonConfig.RosNode,
|
|
Node: commonConfig.RosNode,
|
|
@@ -656,7 +646,6 @@ func ProduceWindow() {
|
|
// 14
|
|
// 14
|
|
if topic == masterConfig.TopicOfHeartbeatInfo &&
|
|
if topic == masterConfig.TopicOfHeartbeatInfo &&
|
|
(len(masterConfig.RuleOfHeartbeatInfo1) > 0 ||
|
|
(len(masterConfig.RuleOfHeartbeatInfo1) > 0 ||
|
|
- len(masterConfig.RuleOfHeartbeatInfo2) > 0 ||
|
|
|
|
len(masterConfig.RuleOfHeartbeatInfo3) > 0) {
|
|
len(masterConfig.RuleOfHeartbeatInfo3) > 0) {
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
Node: commonConfig.RosNode,
|
|
Node: commonConfig.RosNode,
|
|
@@ -700,7 +689,6 @@ func ProduceWindow() {
|
|
// 15
|
|
// 15
|
|
if topic == masterConfig.TopicOfLidarPretreatmentCost &&
|
|
if topic == masterConfig.TopicOfLidarPretreatmentCost &&
|
|
(len(masterConfig.RuleOfLidarPretreatmentCost1) > 0 ||
|
|
(len(masterConfig.RuleOfLidarPretreatmentCost1) > 0 ||
|
|
- len(masterConfig.RuleOfLidarPretreatmentCost2) > 0 ||
|
|
|
|
len(masterConfig.RuleOfLidarPretreatmentCost3) > 0) {
|
|
len(masterConfig.RuleOfLidarPretreatmentCost3) > 0) {
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
Node: commonConfig.RosNode,
|
|
Node: commonConfig.RosNode,
|
|
@@ -745,7 +733,6 @@ func ProduceWindow() {
|
|
// 16
|
|
// 16
|
|
if topic == masterConfig.TopicOfLidarPretreatmentOdometry &&
|
|
if topic == masterConfig.TopicOfLidarPretreatmentOdometry &&
|
|
(len(masterConfig.RuleOfLidarPretreatmentOdometry1) > 0 ||
|
|
(len(masterConfig.RuleOfLidarPretreatmentOdometry1) > 0 ||
|
|
- len(masterConfig.RuleOfLidarPretreatmentOdometry2) > 0 ||
|
|
|
|
len(masterConfig.RuleOfLidarPretreatmentOdometry3) > 0) {
|
|
len(masterConfig.RuleOfLidarPretreatmentOdometry3) > 0) {
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
Node: commonConfig.RosNode,
|
|
Node: commonConfig.RosNode,
|
|
@@ -790,7 +777,6 @@ func ProduceWindow() {
|
|
// 17
|
|
// 17
|
|
if topic == masterConfig.TopicOfLidarRoi &&
|
|
if topic == masterConfig.TopicOfLidarRoi &&
|
|
(len(masterConfig.RuleOfLidarRoi1) > 0 ||
|
|
(len(masterConfig.RuleOfLidarRoi1) > 0 ||
|
|
- len(masterConfig.RuleOfLidarRoi2) > 0 ||
|
|
|
|
len(masterConfig.RuleOfLidarRoi3) > 0) {
|
|
len(masterConfig.RuleOfLidarRoi3) > 0) {
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
Node: commonConfig.RosNode,
|
|
Node: commonConfig.RosNode,
|
|
@@ -834,7 +820,6 @@ func ProduceWindow() {
|
|
// 18
|
|
// 18
|
|
if topic == masterConfig.TopicOfLine1 &&
|
|
if topic == masterConfig.TopicOfLine1 &&
|
|
(len(masterConfig.RuleOfLine11) > 0 ||
|
|
(len(masterConfig.RuleOfLine11) > 0 ||
|
|
- len(masterConfig.RuleOfLine12) > 0 ||
|
|
|
|
len(masterConfig.RuleOfLine13) > 0) {
|
|
len(masterConfig.RuleOfLine13) > 0) {
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
Node: commonConfig.RosNode,
|
|
Node: commonConfig.RosNode,
|
|
@@ -878,7 +863,6 @@ func ProduceWindow() {
|
|
// 19
|
|
// 19
|
|
if topic == masterConfig.TopicOfLine2 &&
|
|
if topic == masterConfig.TopicOfLine2 &&
|
|
(len(masterConfig.RuleOfLine21) > 0 ||
|
|
(len(masterConfig.RuleOfLine21) > 0 ||
|
|
- len(masterConfig.RuleOfLine22) > 0 ||
|
|
|
|
len(masterConfig.RuleOfLine23) > 0) {
|
|
len(masterConfig.RuleOfLine23) > 0) {
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
Node: commonConfig.RosNode,
|
|
Node: commonConfig.RosNode,
|
|
@@ -922,7 +906,6 @@ func ProduceWindow() {
|
|
// 20
|
|
// 20
|
|
if topic == masterConfig.TopicOfMapPolygon &&
|
|
if topic == masterConfig.TopicOfMapPolygon &&
|
|
(len(masterConfig.RuleOfMapPolygon1) > 0 ||
|
|
(len(masterConfig.RuleOfMapPolygon1) > 0 ||
|
|
- len(masterConfig.RuleOfMapPolygon2) > 0 ||
|
|
|
|
len(masterConfig.RuleOfMapPolygon3) > 0) {
|
|
len(masterConfig.RuleOfMapPolygon3) > 0) {
|
|
|
|
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
@@ -967,7 +950,6 @@ func ProduceWindow() {
|
|
// 21
|
|
// 21
|
|
if topic == masterConfig.TopicOfObstacleDisplay &&
|
|
if topic == masterConfig.TopicOfObstacleDisplay &&
|
|
(len(masterConfig.RuleOfObstacleDisplay1) > 0 ||
|
|
(len(masterConfig.RuleOfObstacleDisplay1) > 0 ||
|
|
- len(masterConfig.RuleOfObstacleDisplay2) > 0 ||
|
|
|
|
len(masterConfig.RuleOfObstacleDisplay3) > 0) {
|
|
len(masterConfig.RuleOfObstacleDisplay3) > 0) {
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
Node: commonConfig.RosNode,
|
|
Node: commonConfig.RosNode,
|
|
@@ -1063,7 +1045,6 @@ func ProduceWindow() {
|
|
// 23
|
|
// 23
|
|
if topic == masterConfig.TopicOfPointsCluster &&
|
|
if topic == masterConfig.TopicOfPointsCluster &&
|
|
(len(masterConfig.RuleOfPointsCluster1) > 0 ||
|
|
(len(masterConfig.RuleOfPointsCluster1) > 0 ||
|
|
- len(masterConfig.RuleOfPointsCluster2) > 0 ||
|
|
|
|
len(masterConfig.RuleOfPointsCluster3) > 0) {
|
|
len(masterConfig.RuleOfPointsCluster3) > 0) {
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
Node: commonConfig.RosNode,
|
|
Node: commonConfig.RosNode,
|
|
@@ -1107,7 +1088,6 @@ func ProduceWindow() {
|
|
// 24
|
|
// 24
|
|
if topic == masterConfig.TopicOfPointsConcat &&
|
|
if topic == masterConfig.TopicOfPointsConcat &&
|
|
(len(masterConfig.RuleOfPointsConcat1) > 0 ||
|
|
(len(masterConfig.RuleOfPointsConcat1) > 0 ||
|
|
- len(masterConfig.RuleOfPointsConcat2) > 0 ||
|
|
|
|
len(masterConfig.RuleOfPointsConcat3) > 0) {
|
|
len(masterConfig.RuleOfPointsConcat3) > 0) {
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
Node: commonConfig.RosNode,
|
|
Node: commonConfig.RosNode,
|
|
@@ -1151,7 +1131,6 @@ func ProduceWindow() {
|
|
// 25
|
|
// 25
|
|
if topic == masterConfig.TopicOfReferenceDisplay &&
|
|
if topic == masterConfig.TopicOfReferenceDisplay &&
|
|
(len(masterConfig.RuleOfReferenceDisplay1) > 0 ||
|
|
(len(masterConfig.RuleOfReferenceDisplay1) > 0 ||
|
|
- len(masterConfig.RuleOfReferenceDisplay2) > 0 ||
|
|
|
|
len(masterConfig.RuleOfReferenceDisplay3) > 0) {
|
|
len(masterConfig.RuleOfReferenceDisplay3) > 0) {
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
Node: commonConfig.RosNode,
|
|
Node: commonConfig.RosNode,
|
|
@@ -1195,7 +1174,6 @@ func ProduceWindow() {
|
|
// 26
|
|
// 26
|
|
if topic == masterConfig.TopicOfReferenceTrajectory &&
|
|
if topic == masterConfig.TopicOfReferenceTrajectory &&
|
|
(len(masterConfig.RuleOfReferenceTrajectory1) > 0 ||
|
|
(len(masterConfig.RuleOfReferenceTrajectory1) > 0 ||
|
|
- len(masterConfig.RuleOfReferenceTrajectory2) > 0 ||
|
|
|
|
len(masterConfig.RuleOfReferenceTrajectory3) > 0) {
|
|
len(masterConfig.RuleOfReferenceTrajectory3) > 0) {
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
Node: commonConfig.RosNode,
|
|
Node: commonConfig.RosNode,
|
|
@@ -1239,7 +1217,6 @@ func ProduceWindow() {
|
|
// 27
|
|
// 27
|
|
if topic == masterConfig.TopicOfRoiPoints &&
|
|
if topic == masterConfig.TopicOfRoiPoints &&
|
|
(len(masterConfig.RuleOfRoiPoints1) > 0 ||
|
|
(len(masterConfig.RuleOfRoiPoints1) > 0 ||
|
|
- len(masterConfig.RuleOfRoiPoints2) > 0 ||
|
|
|
|
len(masterConfig.RuleOfRoiPoints3) > 0) {
|
|
len(masterConfig.RuleOfRoiPoints3) > 0) {
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
Node: commonConfig.RosNode,
|
|
Node: commonConfig.RosNode,
|
|
@@ -1283,7 +1260,6 @@ func ProduceWindow() {
|
|
// 28
|
|
// 28
|
|
if topic == masterConfig.TopicOfRoiPolygon &&
|
|
if topic == masterConfig.TopicOfRoiPolygon &&
|
|
(len(masterConfig.RuleOfRoiPolygon1) > 0 ||
|
|
(len(masterConfig.RuleOfRoiPolygon1) > 0 ||
|
|
- len(masterConfig.RuleOfRoiPolygon2) > 0 ||
|
|
|
|
len(masterConfig.RuleOfRoiPolygon3) > 0) {
|
|
len(masterConfig.RuleOfRoiPolygon3) > 0) {
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
Node: commonConfig.RosNode,
|
|
Node: commonConfig.RosNode,
|
|
@@ -1327,7 +1303,6 @@ func ProduceWindow() {
|
|
// 29
|
|
// 29
|
|
if topic == masterConfig.TopicOfTf &&
|
|
if topic == masterConfig.TopicOfTf &&
|
|
(len(masterConfig.RuleOfTf1) > 0 ||
|
|
(len(masterConfig.RuleOfTf1) > 0 ||
|
|
- len(masterConfig.RuleOfTf2) > 0 ||
|
|
|
|
len(masterConfig.RuleOfTf3) > 0) {
|
|
len(masterConfig.RuleOfTf3) > 0) {
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
Node: commonConfig.RosNode,
|
|
Node: commonConfig.RosNode,
|
|
@@ -1429,7 +1404,6 @@ func ProduceWindow() {
|
|
// 31
|
|
// 31
|
|
if topic == masterConfig.TopicOfTpperceptionVis &&
|
|
if topic == masterConfig.TopicOfTpperceptionVis &&
|
|
(len(masterConfig.RuleOfTpperceptionVis1) > 0 ||
|
|
(len(masterConfig.RuleOfTpperceptionVis1) > 0 ||
|
|
- len(masterConfig.RuleOfTpperceptionVis2) > 0 ||
|
|
|
|
len(masterConfig.RuleOfTpperceptionVis3) > 0) {
|
|
len(masterConfig.RuleOfTpperceptionVis3) > 0) {
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
Node: commonConfig.RosNode,
|
|
Node: commonConfig.RosNode,
|
|
@@ -1473,7 +1447,6 @@ func ProduceWindow() {
|
|
// 32
|
|
// 32
|
|
if topic == masterConfig.TopicOfTprouteplan &&
|
|
if topic == masterConfig.TopicOfTprouteplan &&
|
|
(len(masterConfig.RuleOfTprouteplan1) > 0 ||
|
|
(len(masterConfig.RuleOfTprouteplan1) > 0 ||
|
|
- len(masterConfig.RuleOfTprouteplan2) > 0 ||
|
|
|
|
len(masterConfig.RuleOfTprouteplan3) > 0) {
|
|
len(masterConfig.RuleOfTprouteplan3) > 0) {
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
Node: commonConfig.RosNode,
|
|
Node: commonConfig.RosNode,
|
|
@@ -1517,7 +1490,6 @@ func ProduceWindow() {
|
|
// 33
|
|
// 33
|
|
if topic == masterConfig.TopicOfTrajectoryDisplay &&
|
|
if topic == masterConfig.TopicOfTrajectoryDisplay &&
|
|
(len(masterConfig.RuleOfTrajectoryDisplay1) > 0 ||
|
|
(len(masterConfig.RuleOfTrajectoryDisplay1) > 0 ||
|
|
- len(masterConfig.RuleOfTrajectoryDisplay2) > 0 ||
|
|
|
|
len(masterConfig.RuleOfTrajectoryDisplay3) > 0) {
|
|
len(masterConfig.RuleOfTrajectoryDisplay3) > 0) {
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
Node: commonConfig.RosNode,
|
|
Node: commonConfig.RosNode,
|
|
@@ -1561,7 +1533,6 @@ func ProduceWindow() {
|
|
// 34
|
|
// 34
|
|
if topic == masterConfig.TopicOfUngroundCloudpoints &&
|
|
if topic == masterConfig.TopicOfUngroundCloudpoints &&
|
|
(len(masterConfig.RuleOfUngroundCloudpoints1) > 0 ||
|
|
(len(masterConfig.RuleOfUngroundCloudpoints1) > 0 ||
|
|
- len(masterConfig.RuleOfUngroundCloudpoints2) > 0 ||
|
|
|
|
len(masterConfig.RuleOfUngroundCloudpoints3) > 0) {
|
|
len(masterConfig.RuleOfUngroundCloudpoints3) > 0) {
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
Node: commonConfig.RosNode,
|
|
Node: commonConfig.RosNode,
|
|
@@ -1605,7 +1576,6 @@ func ProduceWindow() {
|
|
// 35
|
|
// 35
|
|
if topic == masterConfig.TopicOfCameraImage &&
|
|
if topic == masterConfig.TopicOfCameraImage &&
|
|
(len(masterConfig.RuleOfCameraImage1) > 0 ||
|
|
(len(masterConfig.RuleOfCameraImage1) > 0 ||
|
|
- len(masterConfig.RuleOfCameraImage2) > 0 ||
|
|
|
|
len(masterConfig.RuleOfCameraImage3) > 0) {
|
|
len(masterConfig.RuleOfCameraImage3) > 0) {
|
|
|
|
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
@@ -1701,7 +1671,6 @@ func ProduceWindow() {
|
|
// 37
|
|
// 37
|
|
if topic == masterConfig.TopicOfPjiGps &&
|
|
if topic == masterConfig.TopicOfPjiGps &&
|
|
(len(masterConfig.RuleOfPjiGps1) > 0 ||
|
|
(len(masterConfig.RuleOfPjiGps1) > 0 ||
|
|
- len(masterConfig.RuleOfPjiGps2) > 0 ||
|
|
|
|
len(masterConfig.RuleOfPjiGps3) > 0) {
|
|
len(masterConfig.RuleOfPjiGps3) > 0) {
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
subscribers[i], err = goroslib.NewSubscriber(goroslib.SubscriberConf{
|
|
Node: commonConfig.RosNode,
|
|
Node: commonConfig.RosNode,
|
|
@@ -1780,7 +1749,6 @@ func ProduceWindow() {
|
|
}
|
|
}
|
|
subscribersTimeMutexes[i].Unlock()
|
|
subscribersTimeMutexes[i].Unlock()
|
|
// 更新共享变量
|
|
// 更新共享变量
|
|
- shareVars.Store("Automode", data.Automode)
|
|
|
|
shareVars.Store("AutomodeOfPjVehicleFdbPub", data.Automode)
|
|
shareVars.Store("AutomodeOfPjVehicleFdbPub", data.Automode)
|
|
},
|
|
},
|
|
})
|
|
})
|