From 8a7776e0e473703f0d70f30f233785d6a527a3df Mon Sep 17 00:00:00 2001 From: Andrea Ponza Date: Fri, 11 Oct 2019 12:37:06 +0200 Subject: [PATCH] fix segfault as per #6 --- src/gpd_ros/grasp_detection_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpd_ros/grasp_detection_server.cpp b/src/gpd_ros/grasp_detection_server.cpp index 171b6d9..94d7e2f 100644 --- a/src/gpd_ros/grasp_detection_server.cpp +++ b/src/gpd_ros/grasp_detection_server.cpp @@ -6,7 +6,7 @@ GraspDetectionServer::GraspDetectionServer(ros::NodeHandle& node) cloud_camera_ = NULL; // set camera viewpoint to default origin - std::vector camera_position; + auto camera_position = std::vector {0.0, 0.0, 0.0}; node.getParam("camera_position", camera_position); view_point_ << camera_position[0], camera_position[1], camera_position[2];