ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Solved it by putting the path (properly not the correct terminology) inside the " " section.

ros::ServiceClient client = n.serviceClient<ifm3d::Trigger>("ifm2d/camera/Trigger");

So adding ifm3d/camera/ to the Trigger part looks like it directs the trigger to the the correct service and now it works. Thanks for listening.

👍

Solved it by putting the path (properly not the correct terminology) inside the " " section.

ros::ServiceClient client = n.serviceClient<ifm3d::Trigger>("ifm2d/camera/Trigger");
n.serviceClient<ifm3d::Trigger>("ifm3d/camera/Trigger");

So adding ifm3d/camera/ to the Trigger part looks like it directs the trigger to the the correct service and now it works. Thanks for listening.

👍