Error using ROS custom messages add-on

Hi all,
I have just installed the ROS custom message add-on to the Robotics System Toolbox, and it seems to be broken - when I run rosgenmsg(folderpath), I get the error message:
"Undefined variable "hwconnectinstaller" or class "hwconnectinstaller.PackageInfo".
Error in robotics.ros.custommsg.internal.SupportPackage
Error in robotics.ros.custommsg.internal.setup.registerMessageCatalog (line 9) spPkg = robotics.ros.custommsg.internal.SupportPackage;
Error in rosgenmsg (line 33) robotics.ros.custommsg.internal.setup.registerMessageCatalog;"
I noticed another person with an identical problem commenting on the add-on 2 days ago. Does anyone know how to fix this please?

6 Comments

Can you confirm if you followed step by step guide on this page:
And still see the issue.
I would also try to reinstall the addon - seems the addon is not configured correctly.
I have followed the step by step guide, and have uninstalled and reinstalled the add-on twice now, and still get the same error message...
I uninstalled and reinstalled the add-on for the third time now and am still having the same issue, but noticed the following error message during installation if this helps:
"Warning: Could not open the ROS Custom Message documentation. See the "Custom Message Support" section in the Robotics System Toolbox documentation.
Detailed error report: Undefined variable "hwconnectinstaller" or class "hwconnectinstaller.PackageInfo".
Error in robotics.ros.custommsg.internal.SupportPackage
Error in robotics.ros.custommsg.internal.setup.registerMessageCatalog (line 9) spPkg = robotics.ros.custommsg.internal.SupportPackage;
Error in robotics.ros.custommsg.internal.setup.postInstallCmd (line 14) robotics.ros.custommsg.internal.setup.registerMessageCatalog;
Error in matlabshared.supportpkg.internal.ssi.util.evaluateCmd
Error in matlabshared.supportpkg.internal.ssi.executePostInstallForBaseCode > In robotics.ros.custommsg.internal.setup.postInstallCmd (line 18) In matlabshared.supportpkg.internal.ssi.util.evaluateCmd In matlabshared.supportpkg.internal.ssi.executePostInstallForBaseCode"
Can you please inform the following: - what MATLAB release are you using? - Are you able to run this to get any information:
>>which hwconnectinstaller.PackageInfo
It's MATLAB 2017b, and that command unfortunately leads to "'hwconnectinstaller.PackageInfo' not found"...
Thanks Michael, for the information. We are working on a fix to this issue and will make it available soon. Sorry for the inconvenience.

Sign in to comment.

Answers (1)

Ok I am glad to announce that we fixed the issue in our product, and there is a new version for the addon 17.2.1 present.
On MATLAB from R2017b, >> roboticsAddons
Update your ROS Custom Message addon.
or can use MATLAB Home tab Add-ons > Manage Add-ons

Categories

Asked:

on 6 Dec 2017

Edited:

on 20 Feb 2026 at 19:34

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!