Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while trying to request a GraspPlanning service #57

Open
gstavrinos opened this issue Oct 4, 2018 · 1 comment
Open

Error while trying to request a GraspPlanning service #57

gstavrinos opened this issue Oct 4, 2018 · 1 comment

Comments

@gstavrinos
Copy link

Dear Josh,

I am trying to call a GraspPlanning service but I fail terribly.

My code related to the service is this:


init_node("code_snippet")
    planning_srv = ServiceProxy("/graspit_eg_planning", GraspPlanning)
    wait_for_service("/graspit_eg_planning")
dbmp = DatabaseModelPose()
    #dbmp.mode_id = 
    #dbmp.model_pose = 
    dbmp.confidence = 1
    dbmp.detector_name = "manual_detection"
planning_req = GraspPlanningRequest()
    planning_req.arm_name = "arm"
    planning_req.target.reference_frame_id = "0"
    planning_req.target.potential_models = [dbmp]
    planning_req.target = GraspableObject()
    planning_req.target.region = SceneRegion()
    planning_req.target.region.cloud = PointCloud2()

     response = planning_srv(planning_req)

And I get this error:

SerializationError('field target.region.cloud.data must be a list or tuple type',)

Any thoughts??

Thanks,

George

@gstavrinos
Copy link
Author

MWE:

 using RobotOS
 
 @rosimport manipulation_msgs.srv: GraspPlanning
 
 rostypegen()

 using .manipulation_msgs.srv
 
 init_node("MWE")
 
 planning_srv = ServiceProxy("tmp", GraspPlanning)
 
 planning_srv(GraspPlanningRequest())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant