ROS2 Launch File
Hey Folks! So I have a question relating to the Launch Files with ROS2. I have two separate packages (call them Package A and Package B). Package B has a normal node_executable. So, Package B runs via the launch file just fine.
Node(
package='B',
namespace='node_example',
node_executable='node_example_cpp'
)
Now, Package A has an executablelogic that is not a node. It is a python script that initalises all the nodes in the package and runs it as it needs to.
I added:
Node(
package='A',
namespace='script_example',
node_executable='script_example_py',
output="screen"
)
In short. It isnt working out. It runs the Package B but does not run Package A. I removed Package B call from the launch. And there was still no effect.
for reference script_example_py does run when you just call it normally (ros2 run A script_example_py)
Thanks in advance! Any help is appreciated!
why do you do this? Isn't that the role of a launch file?
also, without the code itself (not just the launch files) we won't be able to help much