How can I build messages separately from services ?
I am trying to use the i2cpwm_board package. This compiles and runs on the Raspberry Pi without problems. However I want to send servo control messages to the Pi from a PC. As I understand it this is trivial in ROS. I run the servo control service on the Pi:
roscore and rosrun i2cpwm_board i2cpwm_board
... and then send messages to it via ROS topics from the PC:
rostopic pub -1 /servos_absolute i2cpwm_board/ServoArray "{servos:[{servo: 1, value: 300}]}"
The problem is that that the PC does not understand the message ? I tried to build the i2cpwm_board package on the PC, but of course this is designed for the Pi and has many errors (the PC does not have I2C).
What is the approach for this type of multi-architecture problem ? I feel that I have to change the CMakeLists or package.xml in some way so that the PC only tries to build the messages, but I am very inexperienced with ROS and do not see how to do that.