Nodes launched (with roslaunch) die, nodes runned (with rosrun) work fine

asked 2019-10-17 05:12:13 -0600

AndreaTimpani gravatar image

updated 2019-10-18 07:14:17 -0600

Hi to everyone,

I create a c++ ros node. If I launch it (with a dedicated roslaunch) and then i call the service who is connected to the nodes, it dies with the exit code -11. Instead, if i rosrun the same node and then I call the specific service, it runs fine.

This is the launch file:

<?xml version="1.0"?>
<launch>
  <node pkg="graph_manager" type="graph_manager_node" name="agv_graph_manager" />
</launch>

Otherwise, the rosrun command is the following one:

rosrun graph_manager graph_manager_node

Some info about my project

Package name: graph_manager

ros::init(argc, argv, "graph_manager");

The ros service I call, is a custom service who has the request field only with an Int16 data

edit retag flag offensive close merge delete