colcon build --symlink-install --packages-select grasp_msgs moveit_msgs grasp_ros2
Starting >>> grasp_msgs
Starting >>> moveit_msgs
Finished <<< grasp_msgs [1.38s]
Finished <<< moveit_msgs [1.65s]
Starting >>> grasp_ros2
[Processing: grasp_ros2]
[Processing: grasp_ros2]
--- stderr: grasp_ros2
In file included from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_planner.cpp:29:0:
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/ros_params.hpp:38:5: error: ‘GraspDetector’ has not been declared
GraspDetector::GraspDetectionParameters & param);
^~~~~~~~~~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/ros_params.hpp:38:45: error: expected ‘,’ or ‘...’ before ‘&’ token
GraspDetector::GraspDetectionParameters & param);
^
In file included from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/ros_params.cpp:18:0:
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/ros_params.hpp:38:5: error: ‘GraspDetector’ has not been declared
GraspDetector::GraspDetectionParameters & param);
^~~~~~~~~~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/ros_params.hpp:38:45: error: expected ‘,’ or ‘...’ before ‘&’ token
GraspDetector::GraspDetectionParameters & param);
^
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/ros_params.cpp:25:3: error: ‘GraspDetector’ has not been declared
GraspDetector::GraspDetectionParameters & param)
^~~~~~~~~~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/ros_params.cpp:25:43: error: expected ‘,’ or ‘...’ before ‘&’ token
GraspDetector::GraspDetectionParameters & param)
^
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/ros_params.cpp: In static member function ‘static void grasp_ros2::ROSParameters::getDetectionParams(rclcpp::Node*, int)’:
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/ros_params.cpp:28:42: error: ‘param’ was not declared in this scope
node->get_parameter_or("finger_width", param.hand_search_params.finger_width_, 0.005);
^~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/ros_params.cpp:25:18: warning: unused parameter ‘GraspDetectionParameters’ [-Wunused-parameter]
GraspDetector::GraspDetectionParameters & param)
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/ros_params.cpp:18:0:
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/ros_params.hpp:38:5: error: ‘GraspDetector’ has not been declared
GraspDetector::GraspDetectionParameters & param);
^~~~~~~~~~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/ros_params.hpp:38:45: error: expected ‘,’ or ‘...’ before ‘&’ token
GraspDetector::GraspDetectionParameters & param);
^
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/ros_params.cpp:25:3: error: ‘GraspDetector’ has not been declared
GraspDetector::GraspDetectionParameters & param)
^~~~~~~~~~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/ros_params.cpp:25:43: error: expected ‘,’ or ‘...’ before ‘&’ token
GraspDetector::GraspDetectionParameters & param)
^
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/ros_params.cpp: In static member function ‘static void grasp_ros2::ROSParameters::getDetectionParams(rclcpp::Node*, int)’:
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/ros_params.cpp:28:42: error: ‘param’ was not declared in this scope
node->get_parameter_or("finger_width", param.hand_search_params.finger_width_, 0.005);
^~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/ros_params.cpp:25:18: warning: unused parameter ‘GraspDetectionParameters’ [-Wunused-parameter]
GraspDetector::GraspDetectionParameters & param)
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:24:0:
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_detector_gpd.hpp:98:15: error: ‘Grasp’ was not declared in this scope
std::vector<Grasp> detectGraspPosesInTopic();
^~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_detector_gpd.hpp:98:15: note: suggested alternative:
In file included from /home/tucuman/ros2_ws/install/moveit_msgs/include/moveit_msgs/srv/grasp_planning__struct.hpp:32:0,
from /home/tucuman/ros2_ws/install/moveit_msgs/include/moveit_msgs/srv/grasp_planning.hpp:7,
from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_planner.hpp:22,
from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_detector_gpd.hpp:54,
from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:24:
/home/tucuman/ros2_ws/install/moveit_msgs/include/moveit_msgs/msg/grasp__struct.hpp:267:49: note: ‘moveit_msgs::msg::Grasp’
moveit_msgs::msg::Grasp_<std::allocator<void>>;
^
In file included from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:24:0:
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_detector_gpd.hpp:98:20: error: template argument 1 is invalid
std::vector<Grasp> detectGraspPosesInTopic();
^
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_detector_gpd.hpp:98:20: error: template argument 2 is invalid
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_detector_gpd.hpp:117:73: error: ‘Grasp’ was not declared in this scope
grasp_msgs::msg::GraspConfigList createGraspListMsg(const std::vector<Grasp> & hands);
^~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_detector_gpd.hpp:117:73: note: suggested alternative:
In file included from /home/tucuman/ros2_ws/install/moveit_msgs/include/moveit_msgs/srv/grasp_planning__struct.hpp:32:0,
from /home/tucuman/ros2_ws/install/moveit_msgs/include/moveit_msgs/srv/grasp_planning.hpp:7,
from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_planner.hpp:22,
from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_detector_gpd.hpp:54,
from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:24:
/home/tucuman/ros2_ws/install/moveit_msgs/include/moveit_msgs/msg/grasp__struct.hpp:267:49: note: ‘moveit_msgs::msg::Grasp’
moveit_msgs::msg::Grasp_<std::allocator<void>>;
^
In file included from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:24:0:
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_detector_gpd.hpp:117:78: error: template argument 1 is invalid
grasp_msgs::msg::GraspConfigList createGraspListMsg(const std::vector<Grasp> & hands);
^
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_detector_gpd.hpp:117:78: error: template argument 2 is invalid
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_detector_gpd.hpp:124:56: error: ‘Grasp’ does not name a type
grasp_msgs::msg::GraspConfig convertToGraspMsg(const Grasp & hand);
^~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_detector_gpd.hpp:130:23: error: ‘Grasp’ was not declared in this scope
const std::vector<Grasp> & hands,
^~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_detector_gpd.hpp:130:23: note: suggested alternative:
In file included from /home/tucuman/ros2_ws/install/moveit_msgs/include/moveit_msgs/srv/grasp_planning__struct.hpp:32:0,
from /home/tucuman/ros2_ws/install/moveit_msgs/include/moveit_msgs/srv/grasp_planning.hpp:7,
from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_planner.hpp:22,
from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_detector_gpd.hpp:54,
from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:24:
/home/tucuman/ros2_ws/install/moveit_msgs/include/moveit_msgs/msg/grasp__struct.hpp:267:49: note: ‘moveit_msgs::msg::Grasp’
moveit_msgs::msg::Grasp_<std::allocator<void>>;
^
In file included from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:24:0:
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_detector_gpd.hpp:130:28: error: template argument 1 is invalid
const std::vector<Grasp> & hands,
^
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_detector_gpd.hpp:130:28: error: template argument 2 is invalid
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_detector_gpd.hpp:197:19: error: ‘GraspDetector’ was not declared in this scope
std::shared_ptr<GraspDetector> grasp_detector_; /**< used to run the grasp pose detection*/
^~~~~~~~~~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_detector_gpd.hpp:197:19: note: suggested alternative:
In file included from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_detector_gpd.hpp:41:0,
from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:24:
/usr/local/include/gpd/grasp_detector.h:66:7: note: ‘gpd::GraspDetector’
class GraspDetector {
^~~~~~~~~~~~~
In file included from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:24:0:
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_detector_gpd.hpp:197:32: error: template argument 1 is invalid
std::shared_ptr<GraspDetector> grasp_detector_; /**< used to run the grasp pose detection*/
^
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_detector_gpd.hpp:198:3: error: ‘GraspDetector’ does not name a type; did you mean ‘GraspDetectorGPD’?
GraspDetector::GraspDetectionParameters detection_param_; /**< grasp detector parameters*/
^~~~~~~~~~~~~
GraspDetectorGPD
In file included from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:25:0:
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/ros_params.hpp:38:5: error: ‘GraspDetector’ has not been declared
GraspDetector::GraspDetectionParameters & param);
^~~~~~~~~~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/ros_params.hpp:38:45: error: expected ‘,’ or ‘...’ before ‘&’ token
GraspDetector::GraspDetectionParameters & param);
^
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp: In constructor ‘grasp_ros2::GraspDetectorGPD::GraspDetectorGPD(const rclcpp::NodeOptions&)’:
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:89:43: error: ‘detection_param_’ was not declared in this scope
ROSParameters::getDetectionParams(this, detection_param_);
^~~~~~~~~~~~~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:89:43: note: suggested alternative: ‘detector_thread_’
ROSParameters::getDetectionParams(this, detection_param_);
^~~~~~~~~~~~~~~~
detector_thread_
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:90:38: error: ‘GraspDetector’ was not declared in this scope
grasp_detector_ = std::make_shared<GraspDetector>(detection_param_);
^~~~~~~~~~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:90:38: note: suggested alternative:
In file included from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_detector_gpd.hpp:41:0,
from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:24:
/usr/local/include/gpd/grasp_detector.h:66:7: note: ‘gpd::GraspDetector’
class GraspDetector {
^~~~~~~~~~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp: In member function ‘void grasp_ros2::GraspDetectorGPD::onInit()’:
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:105:19: error: ‘Grasp’ was not declared in this scope
std::vector<Grasp> grasps = detectGraspPosesInTopic();
^~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:105:19: note: suggested alternative:
In file included from /home/tucuman/ros2_ws/install/moveit_msgs/include/moveit_msgs/srv/grasp_planning__struct.hpp:32:0,
from /home/tucuman/ros2_ws/install/moveit_msgs/include/moveit_msgs/srv/grasp_planning.hpp:7,
from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_planner.hpp:22,
from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_detector_gpd.hpp:54,
from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:24:
/home/tucuman/ros2_ws/install/moveit_msgs/include/moveit_msgs/msg/grasp__struct.hpp:267:49: note: ‘moveit_msgs::msg::Grasp’
moveit_msgs::msg::Grasp_<std::allocator<void>>;
^
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:105:24: error: template argument 1 is invalid
std::vector<Grasp> grasps = detectGraspPosesInTopic();
^
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:105:24: error: template argument 2 is invalid
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:108:15: error: ‘HandSearch’ does not name a type; did you mean ‘cvSeqSearch’?
const HandSearch::Parameters & params = grasp_detector_->getHandSearchParameters();
^~~~~~~~~~
cvSeqSearch
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:109:67: error: ‘params’ was not declared in this scope
grasps_rviz_pub_->publish(convertToVisualGraspMsg(grasps, params.hand_outer_diameter_,
^~~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp: At global scope:
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:124:13: error: ‘Grasp’ was not declared in this scope
std::vector<Grasp> GraspDetectorGPD::detectGraspPosesInTopic()
^~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:124:13: note: suggested alternative:
In file included from /home/tucuman/ros2_ws/install/moveit_msgs/include/moveit_msgs/srv/grasp_planning__struct.hpp:32:0,
from /home/tucuman/ros2_ws/install/moveit_msgs/include/moveit_msgs/srv/grasp_planning.hpp:7,
from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_planner.hpp:22,
from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_detector_gpd.hpp:54,
from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:24:
/home/tucuman/ros2_ws/install/moveit_msgs/include/moveit_msgs/msg/grasp__struct.hpp:267:49: note: ‘moveit_msgs::msg::Grasp’
moveit_msgs::msg::Grasp_<std::allocator<void>>;
^
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:124:18: error: template argument 1 is invalid
std::vector<Grasp> GraspDetectorGPD::detectGraspPosesInTopic()
^
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:124:18: error: template argument 2 is invalid
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp: In member function ‘int grasp_ros2::GraspDetectorGPD::detectGraspPosesInTopic()’:
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:127:15: error: ‘Grasp’ was not declared in this scope
std::vector<Grasp> grasps;
^~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:127:15: note: suggested alternative:
In file included from /home/tucuman/ros2_ws/install/moveit_msgs/include/moveit_msgs/srv/grasp_planning__struct.hpp:32:0,
from /home/tucuman/ros2_ws/install/moveit_msgs/include/moveit_msgs/srv/grasp_planning.hpp:7,
from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_planner.hpp:22,
from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_detector_gpd.hpp:54,
from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:24:
/home/tucuman/ros2_ws/install/moveit_msgs/include/moveit_msgs/msg/grasp__struct.hpp:267:49: note: ‘moveit_msgs::msg::Grasp’
moveit_msgs::msg::Grasp_<std::allocator<void>>;
^
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:127:20: error: template argument 1 is invalid
std::vector<Grasp> grasps;
^
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:127:20: error: template argument 2 is invalid
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:131:20: error: base operand of ‘->’ is not a pointer
grasp_detector_->preprocessPointCloud(*cloud_camera_);
^~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:133:29: error: base operand of ‘->’ is not a pointer
grasps = grasp_detector_->detectGrasps(*cloud_camera_);
^~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp: In member function ‘void grasp_ros2::GraspDetectorGPD::cloud_callback(sensor_msgs::msg::PointCloud2_<std::allocator<void> >::SharedPtr)’:
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:187:34: error: ‘detection_param_’ was not declared in this scope
if (cloud->points[i].x > detection_param_.workspace_[0] && cloud->points[i].x < detection_param_.workspace_[1] &&
^~~~~~~~~~~~~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:187:34: note: suggested alternative: ‘detector_thread_’
if (cloud->points[i].x > detection_param_.workspace_[0] && cloud->points[i].x < detection_param_.workspace_[1] &&
^~~~~~~~~~~~~~~~
detector_thread_
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp: At global scope:
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:299:21: error: ‘Grasp’ was not declared in this scope
const std::vector<Grasp> & hands)
^~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:299:21: note: suggested alternative:
In file included from /home/tucuman/ros2_ws/install/moveit_msgs/include/moveit_msgs/srv/grasp_planning__struct.hpp:32:0,
from /home/tucuman/ros2_ws/install/moveit_msgs/include/moveit_msgs/srv/grasp_planning.hpp:7,
from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_planner.hpp:22,
from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_detector_gpd.hpp:54,
from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:24:
/home/tucuman/ros2_ws/install/moveit_msgs/include/moveit_msgs/msg/grasp__struct.hpp:267:49: note: ‘moveit_msgs::msg::Grasp’
moveit_msgs::msg::Grasp_<std::allocator<void>>;
^
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:299:26: error: template argument 1 is invalid
const std::vector<Grasp> & hands)
^
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:299:26: error: template argument 2 is invalid
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp: In member function ‘grasp_msgs::msg::GraspConfigList grasp_ros2::GraspDetectorGPD::createGraspListMsg(const int&)’:
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:303:34: error: request for member ‘size’ in ‘hands’, which is of non-class type ‘const int’
for (uint32_t i = 0; i < hands.size(); i++) {
^~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:304:51: error: invalid types ‘const int[uint32_t {aka unsigned int}]’ for array subscript
msg.grasps.push_back(convertToGraspMsg(hands[i]));
^
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp: At global scope:
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:313:72: error: ‘Grasp’ does not name a type
grasp_msgs::msg::GraspConfig GraspDetectorGPD::convertToGraspMsg(const Grasp & hand)
^~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp: In member function ‘grasp_msgs::msg::GraspConfig grasp_ros2::GraspDetectorGPD::convertToGraspMsg(const int&)’:
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:316:24: error: request for member ‘getGraspBottom’ in ‘hand’, which is of non-class type ‘const int’
pointEigenToMsg(hand.getGraspBottom(), msg.bottom);
^~~~~~~~~~~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:317:24: error: request for member ‘getGraspTop’ in ‘hand’, which is of non-class type ‘const int’
pointEigenToMsg(hand.getGraspTop(), msg.top);
^~~~~~~~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:318:24: error: request for member ‘getGraspSurface’ in ‘hand’, which is of non-class type ‘const int’
pointEigenToMsg(hand.getGraspSurface(), msg.surface);
^~~~~~~~~~~~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:319:25: error: request for member ‘getApproach’ in ‘hand’, which is of non-class type ‘const int’
vectorEigenToMsg(hand.getApproach(), msg.approach);
^~~~~~~~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:320:25: error: request for member ‘getBinormal’ in ‘hand’, which is of non-class type ‘const int’
vectorEigenToMsg(hand.getBinormal(), msg.binormal);
^~~~~~~~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:321:25: error: request for member ‘getAxis’ in ‘hand’, which is of non-class type ‘const int’
vectorEigenToMsg(hand.getAxis(), msg.axis);
^~~~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:322:25: error: request for member ‘getGraspWidth’ in ‘hand’, which is of non-class type ‘const int’
msg.width.data = hand.getGraspWidth();
^~~~~~~~~~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:323:25: error: request for member ‘getScore’ in ‘hand’, which is of non-class type ‘const int’
msg.score.data = hand.getScore();
^~~~~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:324:24: error: request for member ‘getSample’ in ‘hand’, which is of non-class type ‘const int’
pointEigenToMsg(hand.getSample(), msg.sample);
^~~~~~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp: At global scope:
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:330:21: error: ‘Grasp’ was not declared in this scope
const std::vector<Grasp> & hands,
^~~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:330:21: note: suggested alternative:
In file included from /home/tucuman/ros2_ws/install/moveit_msgs/include/moveit_msgs/srv/grasp_planning__struct.hpp:32:0,
from /home/tucuman/ros2_ws/install/moveit_msgs/include/moveit_msgs/srv/grasp_planning.hpp:7,
from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_planner.hpp:22,
from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/include/grasp_library/ros2/grasp_detector_gpd.hpp:54,
from /home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:24:
/home/tucuman/ros2_ws/install/moveit_msgs/include/moveit_msgs/msg/grasp__struct.hpp:267:49: note: ‘moveit_msgs::msg::Grasp’
moveit_msgs::msg::Grasp_<std::allocator<void>>;
^
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:330:26: error: template argument 1 is invalid
const std::vector<Grasp> & hands,
^
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:330:26: error: template argument 2 is invalid
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp: In member function ‘visualization_msgs::msg::MarkerArray grasp_ros2::GraspDetectorGPD::convertToVisualGraspMsg(const int&, double, double, double, double, const string&)’:
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:343:34: error: request for member ‘size’ in ‘hands’, which is of non-class type ‘const int’
for (uint32_t i = 0; i < hands.size(); i++) {
^~~~
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:344:26: error: invalid types ‘const int[uint32_t {aka unsigned int}]’ for array subscript
left_bottom = hands[i].getGraspBottom() - (hw - 0.5 * finger_width) * hands[i].getBinormal();
^
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:344:82: error: invalid types ‘const int[uint32_t {aka unsigned int}]’ for array subscript
left_bottom = hands[i].getGraspBottom() - (hw - 0.5 * finger_width) * hands[i].getBinormal();
^
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:345:27: error: invalid types ‘const int[uint32_t {aka unsigned int}]’ for array subscript
right_bottom = hands[i].getGraspBottom() + (hw - 0.5 * finger_width) * hands[i].getBinormal();
^
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:345:83: error: invalid types ‘const int[uint32_t {aka unsigned int}]’ for array subscript
right_bottom = hands[i].getGraspBottom() + (hw - 0.5 * finger_width) * hands[i].getBinormal();
^
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:346:50: error: invalid types ‘const int[uint32_t {aka unsigned int}]’ for array subscript
left_top = left_bottom + hand_depth * hands[i].getApproach();
^
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:347:52: error: invalid types ‘const int[uint32_t {aka unsigned int}]’ for array subscript
right_top = right_bottom + hand_depth * hands[i].getApproach();
^
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:350:84: error: invalid types ‘const int[uint32_t {aka unsigned int}]’ for array subscript
base_center = left_bottom + 0.5 * (right_bottom - left_bottom) - 0.01 * hands[i].getApproach();
^
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:351:51: error: invalid types ‘const int[uint32_t {aka unsigned int}]’ for array subscript
approach_center = base_center - 0.04 * hands[i].getApproach();
^
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:354:16: error: invalid types ‘const int[uint32_t {aka unsigned int}]’ for array subscript
hands[i].getFrame(), 0.02, hand_height, i, frame_id);
^
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:356:16: error: invalid types ‘const int[uint32_t {aka unsigned int}]’ for array subscript
hands[i].getFrame(), hand_depth, finger_width, hand_height, i * 3, frame_id);
^
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:358:16: error: invalid types ‘const int[uint32_t {aka unsigned int}]’ for array subscript
hands[i].getFrame(), hand_depth, finger_width, hand_height, i * 3 + 1, frame_id);
^
/home/tucuman/ros2_ws/src/ros2_grasp_library/grasp_ros2/src/grasp_detector_gpd.cpp:360:16: error: invalid types ‘const int[uint32_t {aka unsigned int}]’ for array subscript
hands[i].getFrame(), 0.08, finger_width, hand_height, i * 3 + 2, frame_id);
^
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
make[2]: *** [CMakeFiles/grasp_plan.dir/src/grasp_planner.cpp.o] Error 4
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/grasp_detect.dir/src/ros_params.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/grasp_plan.dir/src/ros_params.cpp.o] Error 1
make[1]: *** [CMakeFiles/grasp_plan.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/grasp_detect.dir/src/grasp_detector_gpd.cpp.o] Error 1
make[1]: *** [CMakeFiles/grasp_detect.dir/all] Error 2
make: *** [all] Error 2
---
Failed <<< grasp_ros2 [1min 16s, exited with code 2]
Summary: 2 packages finished [1min 18s]
1 package failed: grasp_ros2
1 package had stderr output: grasp_ros2