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

Running executables without using rosrun or roslaunch ??

asked 2018-01-02 04:01:10 -0500

bkjung gravatar image

MY QUESTION :

Do ROS topics still properly communicate (subscribe/publish) in the following situation, even though I DID NOT run executables by rosrun/roslaunch?

If not, is there way to run ROS executables without using rosrun/roslaunch?

SITUATION :

By running catkin biuld, executables are created as (~/catkin_ws/devel/lib/PROJECT_NAME/sample_node)

If I try to run the execuatble as follows, it prints seemingly okay results on screen.

./catkin_ws/devel/lib/<PROJECT_NAME>/sample_node

(roscore runs somewhere anyway.)

NECESSITY :

I want to add ROS publish function in my pre-developed code, which cannot be run by rosrun/roslaunch because it contains other pthreads.

edit retag flag offensive close merge delete

Comments

1

I've done it with Python and didn't have any problems.

jayess gravatar image jayess  ( 2018-01-02 05:52:54 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2018-01-03 10:09:56 -0500

I've executed the binary files of ROS c++ nodes directly (without using rosrun or roslaunch) without any problems in the past, as long as your environment variables are set correctly this should work without any problems.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-01-02 04:01:10 -0500

Seen: 1,491 times

Last updated: Jan 03 '18