ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
after struggling for 2 days I found a solution (maybe) defining this method
def get_children_spec(base_type, search_path):
(package, name) = genmsg.names.package_resource_name(base_type)
tmp_msg_context = genmsg.msg_loader.MsgContext.create_default()
spec_temp = genmsg.msg_loader.load_msg_by_type(tmp_msg_context, '%s/%s' %(package, name), search_path)
return spec_temp
I would be curious to know if there is a better solution but for the moment I am happy with this.
2 | No.2 Revision |
after struggling for 2 days I found a solution (maybe) defining this method
def get_children_spec(base_type, search_path):
(package, name) = genmsg.names.package_resource_name(base_type)
tmp_msg_context = genmsg.msg_loader.MsgContext.create_default()
spec_temp = genmsg.msg_loader.load_msg_by_type(tmp_msg_context, '%s/%s' %(package, name), search_path) I would be curious to know if there is a better solution but for the moment I am happy with this.