qboticslabs / mastering_ros

This repository contains exercise files of the book "Mastering ROS for Robotics Programming"
https://www.packtpub.com/hardware-and-creative/mastering-ros-robotics-programming
468 stars 282 forks source link

demo_action_server.cpp #8

Closed scottnortman closed 8 years ago

scottnortman commented 8 years ago

When running example code for actionlib client / server, the example from the book works as shown if the same arguments are passed, but if you change the client arguments to prevent preemption, the server issues a warning:

'Your executeCallback did not set the goal to a terminal status. This is a bug in your ActionServer implementation. Fix your code!

qboticslabs commented 8 years ago

@scottnortman , I have fixed it, can you please clone it and try again. Changes are in demo_action_server.cpp only !!!

scottnortman commented 8 years ago

Different error after fix:

$ /demo_action succeeded at getting to goal 10 terminate called after throwing an instance of 'boost::exception_detail::clone_implboost::exception_detail::error_info_injector'

what(): boost thread: trying joining itself: Resource deadlock avoided Aborted( core dumped)

qboticslabs commented 8 years ago

Hi Scot

Can you send a screen cast of the error. Here it is working perfectly, i am giving a screen cast of working in my system. My mail id :qboticslabs@gmail.com

Please copy this link in browser and check : https://drive.google.com/file/d/0B1Tm9ca_m7pkV3hLcGhOU3VuTzA/view?usp=sharing

scottnortman commented 8 years ago

Hi

Issue solved. When dealing with the prior issue I made a code change that I did not revert when you made the last fix. All is working now. Thanks again.