How to use your custom message in a python node
- Create a python node
- Import message:
from my_robot_interfaces.msg import HardwareStatus
- (Fix your VS Code python imports as described above)
- Add to
package.xml
:
<depend>my_robot_interfaces</depend>
- You can now use the message as any other message.