Download the Autoware Toolbox from the GitHub repository.
Run autoware_toolbox_setup.m in the root folder of Autoware Toolbox.
Paste the following program into the MATLAB command window and execute it.
addons = matlab.addons.installedAddons;
addon_id = 'RO_CUSTOM_ROS_INTERFACE';
tf = strcmp(addon_id, addons.Identifier);
installed_ros_if = any(tf);
if installed_ros_if
disp('Robotics System Toolbox Interface for ROS Custom Messages is already installed.');
else
disp('Robotics System Toolbox interface for ROS Custom Messages is not installed.');
end
※If already installed, this work is not necessary. Skip to "4. Create ROS custom message".
To install the add-ons relevant to Robotics System Toolbox, enter the following command in the MATLAB command window and execute.
roboticsAddons();
When the Add-On Explorer opens, select Robotics System Toolbox Interface for ROS Custom Messages.
When the third-party software installation screen appears, click Next.
Continue to follow the setup instructions on the Add-On Explorer to install add-ons.
1.Install Robotics System Toolbox Add-ons (MathWorks Website)
Paste the following command into the MATLAB command window and execute it.
autoware.createCustomMessages();
Follow the steps below or execute autoware.editJavaClassPath ()
.
- Click the javaclasspath.txt link to open the file in the Editor.
- Copy and paste the different jar file locations as new lines in the file. If this file does not exist, you will be prompted to create it. Click Yes and then copy and paste the file locations into the file.
- The javaclasspath.txt looks like this after adding lines. Other paths may also already exist in this file.
Paste the following command into the MATLAB command window and execute it.
autoware.addCustomMessageFolderToSearchPath();
1.Create Custom Messages from ROS Package (MathWorks Website)
Autoware may send and receive large ROS messages. Therefore, increase the Java heap memory size.
- Click Preferences on the MATLAB toolbar.
- Expand General
- To open the MATLAB General Java Heap Memory Preferences panel, click Java Heap Memory
- Adjust the Java heap memory size.
- Click the "OK" button to close the dialog box.
- To enable the new Java heap size, restart MATLAB.
- Restart MATLAB for the new Java heap size and path changes to be applied.
- After restarting MATLAB, verify the Autoware messages are registered.
rosmsg list
If the Autoware messages are registered, the installation is complete.