When service response is set to reply_srv_SetBool msg = {0};` this causes the response to be a null ptr which is not ok. It should be a string long at least 1to satisfy the ros2 service call tool which will wait for the response. There might also be problems with ROS 2 / CDR standards not expecting null as response.
When service response is set to
reply_srv_SetBoolmsg = {0};` this causes the response to be a null ptr which is not ok. It should be a string long at least 1to satisfy the ros2 service call tool which will wait for the response. There might also be problems with ROS 2 / CDR standards not expecting null as response.