Open wyattrees opened 1 year ago
@wyattrees i solved it by doing a workaround..
at service.py file i imported std_srvs at the top and then i did an if as follows at the send function
message = None
if (isinstance(message_type, std_srvs.srv._trigger.Metaclass_Trigger_Request)):
message = std_srvs.srv.Trigger.Request()
else:
message = deserialize_message(data, message_type)
Describe the bug Calling a ROS2 service of type
std_srvs/srv/Trigger
will crash thedefault_server_endpoint
NodeTo Reproduce Steps to reproduce the behavior:
std_srvs/srv/Trigger
alongside thedefault_server_endpoint
Node.Console logs / stack traces
Expected behavior The service call executes successfully.
Screenshots N/A
Environment (please complete the following information, where applicable):
Additional context Services of other types work as expected. The ROS2 Node I am using in this example is a MoveIt Servo Node. The service I am trying to call is
/servo_node/start_servo
.