ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Service "ERROR: Unable to load type" for a remote Master

asked 2017-02-14 20:52:08 -0600

mlotfy gravatar image

updated 2017-02-15 01:21:13 -0600

gvdhoorn gravatar image

My setup is an Ubuntu 16.04 LTS VM on Win10, and RaspberryPi running Ubuntu Mate 16.04 LTS. I have ROS Kinetic installed on both of the Ubuntu machines and they can ping each other with hostname fine.
I wrote a new node on my remote Master (which is the RPi) that exposes 2 services and I can call the services fine locally on the RPi. The node is reachable from the Ubuntu VM, I can rosnode ping and can see it in rosservice list. However, when I rosservice info it from the VM, I get:

$ rosservice info get_humid_rh  
Node: /sht15_node  
URI: rosrpc://mlotfy-pi:36003  
Type: sht15/GetHumidRh  
ERROR: Unable to load type [sht15/GetHumidRh].  
Have you typed 'make' in [sht15]?

When I try to rosservice call it from the VM, I get:

$ rosservice call get_humid_rh  
ERROR: Unable to load type [sht15/GetHumidRh].  
Have you typed 'make' in [sht15]?

What could be missing here?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
5

answered 2017-02-15 01:23:13 -0600

gvdhoorn gravatar image

updated 2017-02-15 01:23:24 -0600

Message definitions will need to be present on all hosts that want to participate in the ROS node graph.

In other words: make sure the workspace in your VM has a copy of the message package and build the workspace.

PS: this is one of the reasons why having packages with just messages is a good idea: that way you can access remote services / topics without needing to have the rest of the software duplicated as well.

edit flag offensive delete link more

Comments

You made my day! That worked. Thanks for the design advice as well, it will take me sometime to learn ROS design patterns.

mlotfy gravatar image mlotfy  ( 2017-02-15 03:56:32 -0600 )edit

Start here.

gvdhoorn gravatar image gvdhoorn  ( 2017-02-15 04:12:44 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2017-02-14 20:51:39 -0600

Seen: 5,435 times

Last updated: Feb 15 '17