Skip to content

Commit 5d48bdf

Browse files
authored
fix formatting (opencv#14)
1 parent f61917f commit 5d48bdf

File tree

4 files changed

+4
-17
lines changed

4 files changed

+4
-17
lines changed

Dockerfile.estimator

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ FROM base
5151

5252
ARG SERVICE_PACKAGE=ibpc_pose_estimator
5353
ARG SERVICE_EXECUTABLE_NAME=ibpc_pose_estimator
54-
ARG SERVICE_NAME=/get_pose_estimates
5554

5655
RUN apt update \
5756
&& sudo apt install curl -y \
@@ -72,8 +71,6 @@ RUN sed --in-place \
7271
ENV SERVICE_PACKAGE=${SERVICE_PACKAGE}
7372
ENV SERVICE_EXECUTABLE_NAME=${SERVICE_EXECUTABLE_NAME}
7473
ENV MODEL_DIR=/opt/ros/underlay/install/models
75-
ENV SERVICE_NAME=${SERVICE_NAME}
7674

7775
CMD 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}

Dockerfile.tester

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ FROM base
4949
ARG DATASET_NAME
5050
ARG SERVICE_PACKAGE=ibpc_tester
5151
ARG SERVICE_EXECUTABLE_NAME=ibpc_tester
52-
ARG SERVICE_NAME=/get_pose_estimates
5352

5453
RUN apt update \
5554
&& sudo apt install curl -y \
@@ -74,8 +73,6 @@ ENV DATASET_NAME=${DATASET_NAME}
7473
ENV SERVICE_PACKAGE=${SERVICE_PACKAGE}
7574
ENV SERVICE_EXECUTABLE_NAME=${SERVICE_EXECUTABLE_NAME}
7675
ENV BOP_PATH=/opt/ros/underlay/install/datasets
77-
ENV SERVICE_NAME=${SERVICE_NAME}
7876

7977
CMD 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}

ibpc_pose_estimator/src/ibpc_pose_estimator.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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.",

ibpc_pose_estimator_py/ibpc_pose_estimator_py/ibpc_pose_estimator.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)