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

Node works differently with using launch file.

asked 2022-10-19 02:12:46 -0500

Edvard gravatar image

Hi. Sorry for my mistakes. English is not my native language. I created a node, that subscribes to topic with data from sensors, then find with tf::TransformListener and tf::StampedTransform robot position, combines this data and writes it in csv file, also it prints in terminal robot position. Then I run this code with rosrun everything works as it should work, but then I run it with roslaunch it only prints position in the terminal with no data written in file. Appreciate any help. This is how looks my launch file


<?xml version="1.0"?>
<launch>
     <node pkg="minicar_current_pose" type="minicar_current_pose_node" name="minicar_current_pose_node"  output="screen">
</node>
</launch>

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-10-19 07:57:54 -0500

Mike Scheutzow gravatar image

By default in linux, the current working directory for roslaunch is $HOME/.ros/. If you did not specify a full path when you opened the file, the file was probably created there.

edit flag offensive delete link more

Comments

Thank you for your help. You are right, I found it there

Edvard gravatar image Edvard  ( 2022-10-19 08:08:43 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2022-10-19 02:12:46 -0500

Seen: 39 times

Last updated: Oct 19 '22