ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
@prasannakumar: Since my reply is too large to put into a comment, so here goes:
OK, so I won't see /gazebo/get_link_state in the topic list. In C++, I'm using
ros::ServiceClient gls_client = n.serviceClient<gazebo_msgs::getlinkstate>("/gazebo/get_link_state/pose"); if (gls_client.exists()) { ROS_INFO("link state exists"); gls_request.link_name = right_hand; gls_request" } else { ROS_INFO("Something went wrong"); }
This ends in getting "Something went wrong". So where do I go wrong?
Thank you.
2 | No.2 Revision |
@prasannakumar: Since my reply is too large to put into a comment, so I do it in an answer. So here goes:
OK, so I won't see /gazebo/get_link_state in the topic list. In C++, I'm using
ros::ServiceClient gls_client = n.serviceClient<gazebo_msgs::getlinkstate>("/gazebo/get_link_state/pose"); if (gls_client.exists()) { ROS_INFO("link state exists"); gls_request.link_name = right_hand; gls_request" } else { ROS_INFO("Something went wrong"); }
This ends in getting "Something went wrong". So where do I go wrong?
Thank you.