Skip to content

Commit d2fe559

Browse files
Added string field in StopReconstruction.srv response (ros-industrial#9)
* Added string message field to give more information about why the service failed if success is false * Populated service response with message in industrial_reconstruction.py * Added messages for service response success instances
1 parent 2ae2fd0 commit d2fe559

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Diff for: industrial_reconstruction/industrial_reconstruction/industrial_reconstruction.py

+2
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ def stopReconstructionCallback(self, req, res):
234234
self.get_logger().info("Generating mesh")
235235
if self.tsdf_volume is None:
236236
res.success = False
237+
res.message = "Start reconstruction hasn't been called yet"
237238
return res
238239
if not self.live_integration:
239240
while len(self.tsdf_integration_data) > 0:
@@ -278,6 +279,7 @@ def stopReconstructionCallback(self, req, res):
278279

279280
self.get_logger().info("DONE")
280281
res.success = True
282+
res.message = "Mesh Saved to " + req.mesh_filepath
281283
return res
282284

283285
def cameraCallback(self, depth_image_msg, rgb_image_msg):

Diff for: industrial_reconstruction_msgs/srv/StopReconstruction.srv

+1
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ uint32 min_num_faces
99
industrial_reconstruction_msgs/NormalFilterParams[] normal_filters
1010
---
1111
bool success
12+
string message

0 commit comments

Comments
 (0)