ROS Android Server - ERROR: Unable to load type [closed]
Hi everyone,
1) I didn't succeed in creating a ServiceServer on Android ROS node.
rosservice call /Robot1/waypoint_srv std_msgs/bool 'true'
ERROR: Unable to load type [std_msgs/Bool].
Have you typed 'make' in [std_msgs]?
Here is the code for the Server (the name of the Robot is "Robot1":
private ServiceServer<Bool, Bool> server_waypoints;
this.server_waypoints=node.newServiceServer(mainActivity.getRobotName()+"/waypoint_srv", "std_msgs/Bool", new ServiceResponseBuilder<Bool, Bool>() {
@Override
public void build(Bool bool1, Bool bool) throws ServiceException {
bool.setData(true);
}
});
--> ROS seems to be not able to match "std_msgs/Bool" from Android with Ubuntu one. "Service Caller" in rqt is not able to find what kind of message it has to send.
ServiceCaller.on_refresh_services_button_clicked(): could not get class of service /Robot1/waypoint_srv
2) The next step is to create my own message for the request (waypoint for the robot). Do I have to generate a .msg or a .srv for Android Studio (I guess it is a .msg) and would it be compatible with a C++ node client?
Thank you very much