I can’t compile the code.
I need to subscribe to the topic /VehicleControl, doing that I have to tell the CORE2 what message type will be sent over the topic:
void initVehicleControlSubscriber() {
ros::Subscriber<msg::VehicleControl> *vehicle_control_sub = new ros::Subscriber<msg::VehicleControl>("/VehicleControl", &vehicleControlCallback);
nh.subscribe(*vehicle_control_sub);
}
I created a new header file in the cloud named VehicleControl.h and added the same stuff in there as the custom message which was defined on the other CORE2-ROS, so the code on the CORE2 know what message it is expecting to receive. But that doesn’t work.
I just don’t know how to subscribe to a topic with custom messages from the CORE2 (cloud)