ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
2022-07-19 07:24:21 -0500 | received badge | ● Nice Question (source) |
2018-09-17 15:41:11 -0500 | received badge | ● Student (source) |
2013-02-27 11:18:50 -0500 | received badge | ● Famous Question (source) |
2013-02-15 05:17:15 -0500 | received badge | ● Famous Question (source) |
2013-01-29 00:16:44 -0500 | received badge | ● Notable Question (source) |
2012-12-08 06:31:12 -0500 | received badge | ● Popular Question (source) |
2012-11-24 17:53:18 -0500 | received badge | ● Scholar (source) |
2012-11-24 17:53:06 -0500 | commented answer | Cannot ouput string service via ROS_INFO Thank you! |
2012-11-24 16:45:01 -0500 | asked a question | Cannot ouput string service via ROS_INFO I have a service of type string, my server simply responds with a string. I am trying to implement my client to simply call the service and ROS_INFO out the response. However, when I try to compile I get an error on the line where I am doing the ROS_INFO output. The error is: error: cannot pass objects of non-trivially-copyable type ‘struct std::basic_string<char>’ through ‘...’ Here is my code: parallax_eddie_robot::get_version srv; if(get_version_client_.call(srv)) { ROS_INFO("%s",srv.response.version); } I don't know why it thinks my service is returning a struct because my service file (myservice.srv) is only for a string. It looks like this: string version |
2012-11-24 13:46:14 -0500 | received badge | ● Teacher (source) |
2012-11-24 13:46:14 -0500 | received badge | ● Self-Learner (source) |
2012-11-24 10:44:45 -0500 | received badge | ● Supporter (source) |
2012-11-24 10:44:23 -0500 | answered a question | no matching function for call to ‘ros::NodeHandle::advertiseService(const char [12], bool (Eddie::*)(), Eddie* const)’ Fixed it! Long story short, I forgot to include the header for my service in my header file. Thanks for everyone's answers! |
2012-11-24 10:43:14 -0500 | received badge | ● Notable Question (source) |
2012-11-22 12:24:46 -0500 | commented question | no matching function for call to ‘ros::NodeHandle::advertiseService(const char [12], bool (Eddie::*)(), Eddie* const)’ Thanks petermilani. However, I am still getting the "‘parallax_eddie_robot’ has not been declared" error. As well as "error: ‘bool Eddie::get_board_version’ is not a static member of ‘class Eddie'". Also an error saying that my parameters for the get_version_function 'was not declared in this scope' |
2012-11-22 11:03:50 -0500 | received badge | ● Popular Question (source) |
2012-11-21 13:25:47 -0500 | received badge | ● Editor (source) |
2012-11-21 13:16:51 -0500 | commented question | no matching function for call to ‘ros::NodeHandle::advertiseService(const char [12], bool (Eddie::*)(), Eddie* const)’ However, I still get the same error along with new errors: I will put the list of errors above by editing the original post. |
2012-11-21 13:12:44 -0500 | commented question | no matching function for call to ‘ros::NodeHandle::advertiseService(const char [12], bool (Eddie::*)(), Eddie* const)’ I made the necessary changes and made my get_board_version function take in the necessary parameters so the function signature looks like the following: bool get_board_version(parallax_eddie_robot::get_version::Request &req, parallax_eddie_robot::get_version::Response &res); |
2012-11-21 11:53:08 -0500 | asked a question | no matching function for call to ‘ros::NodeHandle::advertiseService(const char [12], bool (Eddie::*)(), Eddie* const)’ Hi I am getting the following error: Below is the code: (more) |