Skip to content

Commit

Permalink
minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jsinapov committed Apr 24, 2017
1 parent d4205b1 commit 972176a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/agile_grasp/grasp_localizer_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ GraspLocalizerServer::GraspLocalizerServer(ros::NodeHandle& node, const std::str
grasps_handles_pub_ = node.advertise<agile_grasp::Grasps>("grasps_handles", 10);

// service
grasps_service = node.advertiseService("find_grasps", &GraspLocalizerServer::service_callback,this);
ROS_INFO("Starting service...");
grasps_service = node.advertiseService("find_agile_grasps", &GraspLocalizerServer::service_callback,this);

// create localization object and initialize its parameters
localization_ = new Localization(params.num_threads_, true, params.plotting_mode_);
Expand Down
5 changes: 3 additions & 2 deletions src/nodes/find_grasps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#include <agile_grasp/Grasp.h>
#include <agile_grasp/grasp_localizer.h>
#include <agile_grasp/grasp_localizer_server.h>


const std::string CLOUD_TOPIC = "input_cloud";
Expand All @@ -28,7 +29,7 @@ int main(int argc, char** argv)
ros::init(argc, argv, "find_grasps");
ros::NodeHandle node("~");

GraspLocalizerServer::Parameters params;
GraspLocalizer::Parameters params;

// camera transforms (poses)
Eigen::Matrix4d base_tf, sqrt_tf;
Expand Down Expand Up @@ -101,7 +102,7 @@ int main(int argc, char** argv)
std::cout << " plot_mode: " << PLOT_MODES[params.plotting_mode_] << "\n";
std::cout << " marker_lifetime: " << params.marker_lifetime_ << "\n";

GraspLocalizerServer loc(node, cloud_topic, cloud_frame, cloud_type, svm_file_name, params);
GraspLocalizer loc(node, cloud_topic, cloud_frame, cloud_type, svm_file_name, params);
loc.localizeGrasps();

return 0;
Expand Down

0 comments on commit 972176a

Please sign in to comment.