File tree Expand file tree Collapse file tree 4 files changed +4
-17
lines changed
ibpc_pose_estimator_py/ibpc_pose_estimator_py Expand file tree Collapse file tree 4 files changed +4
-17
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,6 @@ FROM base
5151
5252ARG SERVICE_PACKAGE=ibpc_pose_estimator
5353ARG SERVICE_EXECUTABLE_NAME=ibpc_pose_estimator
54- ARG SERVICE_NAME=/get_pose_estimates
5554
5655RUN apt update \
5756 && sudo apt install curl -y \
@@ -72,8 +71,6 @@ RUN sed --in-place \
7271ENV SERVICE_PACKAGE=${SERVICE_PACKAGE}
7372ENV SERVICE_EXECUTABLE_NAME=${SERVICE_EXECUTABLE_NAME}
7473ENV MODEL_DIR=/opt/ros/underlay/install/models
75- ENV SERVICE_NAME=${SERVICE_NAME}
7674
7775CMD exec /opt/ros/overlay/install/lib/${SERVICE_PACKAGE}/${SERVICE_EXECUTABLE_NAME} \
78- --ros-args -p model_dir:=${MODEL_DIR} \
79- -p service_name:=${SERVICE_NAME}
76+ --ros-args -p model_dir:=${MODEL_DIR}
Original file line number Diff line number Diff line change @@ -49,7 +49,6 @@ FROM base
4949ARG DATASET_NAME
5050ARG SERVICE_PACKAGE=ibpc_tester
5151ARG SERVICE_EXECUTABLE_NAME=ibpc_tester
52- ARG SERVICE_NAME=/get_pose_estimates
5352
5453RUN apt update \
5554 && sudo apt install curl -y \
@@ -74,8 +73,6 @@ ENV DATASET_NAME=${DATASET_NAME}
7473ENV SERVICE_PACKAGE=${SERVICE_PACKAGE}
7574ENV SERVICE_EXECUTABLE_NAME=${SERVICE_EXECUTABLE_NAME}
7675ENV BOP_PATH=/opt/ros/underlay/install/datasets
77- ENV SERVICE_NAME=${SERVICE_NAME}
7876
7977CMD exec /opt/ros/overlay/install/lib/${SERVICE_PACKAGE}/${SERVICE_EXECUTABLE_NAME} \
80- --ros-args -p dataset_name:=${DATASET_NAME} \
81- -p service_name:=${SERVICE_NAME}
78+ --ros-args -p dataset_name:=${DATASET_NAME}
Original file line number Diff line number Diff line change @@ -32,8 +32,7 @@ PoseEstimator::PoseEstimator(const rclcpp::NodeOptions & options)
3232 );
3333 model_dir_ = std::filesystem::path (std::move (path_str));
3434
35- std::string srv_name =
36- this ->declare_parameter (" service_name" , " /get_pose_estimates" );
35+ std::string srv_name = " /get_pose_estimates" ;
3736 RCLCPP_INFO (
3837 this ->get_logger (),
3938 " Pose estimates can be queried over srv %s." ,
Original file line number Diff line number Diff line change @@ -89,13 +89,7 @@ def __init__(self):
8989 if self .model_dir == "" :
9090 raise Exception ("ROS parameter model_dir not set." )
9191 self .get_logger ().info (f"Model directory set to { self .model_dir } ." )
92- srv_name = (
93- self .declare_parameter ("service_name" , "/get_pose_estimates" )
94- .get_parameter_value ()
95- .string_value
96- )
97- if srv_name == "" :
98- raise Exception ("ROS parameter service_name not set." )
92+ srv_name = "/get_pose_estimates"
9993 self .get_logger ().info (f"Pose estimates can be queried over srv { srv_name } ." )
10094 self .srv = self .create_service (GetPoseEstimates , srv_name , self .srv_cb )
10195
You can’t perform that action at this time.
0 commit comments