提交 952032d4 编写于 作者: C changsh726 提交者: Liu Jiaming

FuelClient: bug fix

上级 770eba20
......@@ -26,6 +26,7 @@ from google.protobuf import text_format
from modules.dreamview.proto import preprocess_table_pb2
from modules.tools.common.proto_utils import get_pb_from_text_file
ROOT_DIR = '/apollo/modules/tools/sensor_calibration'
class ConfigYaml(object):
"""generate yaml configuration for next-step calibration service.
......@@ -149,7 +150,7 @@ class ConfigYaml(object):
if task_name not in self._supported_tasks:
raise ValueError('does not support the calibration task: {}'.format(
task_name))
user_config = os.path.join(os.path.os.path.dirname(__file__), 'config',
user_config = os.path.join(ROOT_DIR, 'config',
task_name + '_user.config')
if os.path.exists(user_config):
try:
......
......@@ -86,6 +86,8 @@ SMALL_TOPICS = [
flags.DEFINE_string('config', '',
'protobuf text format configuration file abosolute path')
flags.DEFINE_string('root_dir', '/apollo/modules/tools/sensor_calibration',
'program root dir')
FLAGS = flags.FLAGS
......@@ -553,7 +555,7 @@ class Extractor(object):
out_data['main_sensor'] = source_sensor_list[0]
table = preprocess_table_pb2.PreprocessTable()
user_config = os.path.join(os.path.dirname(__file__), 'config',
user_config = os.path.join(FLAGS.root_dir, 'config',
'lidar_to_gnss_user.config')
if os.path.exists(user_config):
try:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册