Compare commits
No commits in common. "465f737eddbe1716e0489b0f75f55e2c53c4cb5f" and "b97afd9462ad1da7dad83366b08bb74fd72ad808" have entirely different histories.
465f737edd
...
b97afd9462
@ -104,8 +104,8 @@ public class PathPlanningServiceImpl implements PathPlanningService {
|
||||
@Resource
|
||||
private PositionMapItemService positionMapItemService;
|
||||
|
||||
@Value("${zn.send_robot_init_pose:false}")
|
||||
private Boolean sendRobotInitPose;
|
||||
@Value("${zn.is_simulation:false}")
|
||||
private Boolean isSimulation;
|
||||
|
||||
@Resource
|
||||
private PositionChangePointBindingService positionChangePointBindingService;
|
||||
@ -481,16 +481,12 @@ public class PathPlanningServiceImpl implements PathPlanningService {
|
||||
@Override
|
||||
public void simulationRobotPoseRequest() {
|
||||
|
||||
if (!sendRobotInitPose) {
|
||||
log.info("不同步初始点位信息");
|
||||
if (!isSimulation) {
|
||||
log.info("非仿真环境,不同步初始点位信息");
|
||||
return;
|
||||
}
|
||||
|
||||
CommonConfigDO config = configService.getConfig(CommandConfigTypeEnum.SIMULATION_CONFIG.getType().longValue());
|
||||
if (ObjectUtil.isEmpty(config)) {
|
||||
log.info("未配置默认地图");
|
||||
return;
|
||||
}
|
||||
PositionMapDO positionMap = null;
|
||||
if (ObjectUtil.isEmpty(config) || ObjectUtil.isEmpty(config.getConfigStr())) {
|
||||
List<PositionMapDO> maps = positionMapService.getAllMap();
|
||||
|
@ -209,5 +209,4 @@ zn:
|
||||
path_planning:
|
||||
task_chche_time: 1209600 #任务缓存的时间, 默认一星期
|
||||
is_simulation: false # 是否为仿真环境
|
||||
send_robot_init_pose: true # 是否为发送默认的车辆所在地图和点位
|
||||
restore_task_restart: false # 恢复任务是否全部重新执行 true:全部重新开始
|
||||
|
@ -244,7 +244,6 @@ zn:
|
||||
path_planning:
|
||||
task_chche_time: 1209600 #任务缓存的时间, 默认一星期
|
||||
is_simulation: true # 是否为仿真环境
|
||||
send_robot_init_pose: true # 是否为发送默认的车辆所在地图和点位
|
||||
restore_task_restart: true # 恢复任务是否全部重新执行 true:全部重新开始
|
||||
|
||||
logging:
|
||||
|
@ -237,6 +237,5 @@ zn:
|
||||
path_planning:
|
||||
task_chche_time: 1209600 #任务缓存的时间, 默认一星期
|
||||
is_simulation: false # 是否为仿真环境
|
||||
send_robot_init_pose: true # 是否为发送默认的车辆所在地图和点位
|
||||
restore_task_restart: false # 恢复任务是否全部重新执行 true:全部重新开始
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user