Skip to content

Commit e71322a

Browse files
committed
Update interfaces
Signed-off-by: Yadunund <[email protected]>
1 parent 5182711 commit e71322a

File tree

8 files changed

+19
-17
lines changed

8 files changed

+19
-17
lines changed

Dockerfile.tester

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ ADD ibpc_tester /opt/ros/overlay/src/ibpc_tester
4141
RUN . /opt/ros/jazzy/setup.sh \
4242
&& . /opt/ros/underlay/install/setup.sh \
4343
&& cd /opt/ros/overlay \
44-
&& cd src/ && git clone https://github.com/Yadunund/bop_toolkit.git -b yadu/ament_python src/ && cd ../ \
44+
&& cd src/ && git clone https://github.com/Yadunund/bop_toolkit.git -b add_ipd_dataset src/ && cd ../ \
4545
# && rosdep install --from-paths src --ignore-src --rosdistro jazzy -yir \
4646
&& colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release \
4747
--event-handlers=console_direct+ \

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ TODO
2121
```bash
2222
mkdir ~/ws_ibpc/src -p
2323
cd ~/ws_ibpc/src
24-
git clone https://github.com/Yadunund/bop_toolkit.git -b yadu/ament_python
24+
git clone https://github.com/Yadunund/bop_toolkit.git -b add_ipd_dataset
2525
git clone https://github.com/Yadunund/ibpc.git
2626
```
2727

ibpc_interfaces/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ find_package(sensor_msgs REQUIRED)
1818
find_package(rosidl_default_generators REQUIRED)
1919

2020
set(msg_files
21+
"msg/Camera.msg"
22+
"msg/Photoneo.msg"
2123
"msg/PoseEstimate.msg"
2224
)
2325

ibpc_interfaces/msg/Camera.msg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
geometry_msgs/PoseStamped pose
2+
sensor_msgs/CameraInfo info
3+
sensor_msgs/Image rgb
4+
sensor_msgs/Image depth
5+
sensor_msgs/Image aolp
6+
sensor_msgs/Image dolp

ibpc_interfaces/msg/Photoneo.msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
geometry_msgs/PoseStamped pose
2+
sensor_msgs/CameraInfo info
3+
sensor_msgs/Image rgb
4+
sensor_msgs/Image depth

ibpc_interfaces/msg/PoseEstimate.msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ uint64 obj_id
55
float64 score
66

77
# A 3x3 rotation matrix whose elements are saved row-wise.
8-
# loat64[9] R # 3x3 row-major matrix
8+
# float64[9] R # 3x3 row-major matrix
99

1010
# A 3x1 translation vector (in mm).
1111
# float64 t[3]

ibpc_interfaces/srv/GetPoseEstimates.srv

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,10 @@
33
# List of object IDs to look for in the scene.
44
uint64[] object_ids
55

6+
67
# Scene images.
7-
sensor_msgs/CameraInfo rgb_info
8-
sensor_msgs/Image rgb
9-
sensor_msgs/CameraInfo depth_info
10-
sensor_msgs/Image depth
11-
sensor_msgs/CameraInfo polarized_info
12-
sensor_msgs/Image polarized
8+
Camera[] cameras
9+
Photoneo photoneo
1310

1411
---
1512

ibpc_tester/ibpc_tester/ibpc_tester.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ def main(argv=sys.argv):
3232
dataset_name = node.get_parameter("dataset_name").get_parameter_value().string_value
3333
node.get_logger().info("Loading from dataset {dataset_name}.")
3434

35-
# Configure members.
36-
camera_params = get_camera_params(datasets_path, dataset_name)
37-
node.get_logger().info(f"Loaded camera params: {camera_params}")
38-
model_params = get_model_params(datasets_path, dataset_name)
39-
node.get_logger().info(f"Loaded model params: {model_params}")
4035
# Load the test split.
4136
test_split = get_split_params(datasets_path, dataset_name, "test")
4237
node.get_logger().info(f"Parsed test split: {test_split}")
@@ -56,9 +51,7 @@ def main(argv=sys.argv):
5651
scene_gt = load_scene_gt(test_split["scene_gt_tpath"].format(scene_id=scene_id))
5752
for img_id, obj_gts in scene_gt.items():
5853
request = GetPoseEstimates.Request()
59-
request.rgb.encoding = "rgb8"
60-
request.depth.encoding = "mono8"
61-
request.polarized.encoding = "mono8"
54+
# todo(Yadunund): Fill in cameras and cv.
6255
# todo(Yadunund): Load corresponding rgb, depth and polarized image for this img_id.
6356
for obj_gt in obj_gts:
6457
request.object_ids.append(int(obj_gt["obj_id"]))

0 commit comments

Comments
 (0)