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

Is there a way to check for a file with specific name with ros?

asked 2022-10-27 01:21:06 -0600

Edvard gravatar image

updated 2022-10-27 01:31:01 -0600

Hi. Sorry for all mistakes, English is not my native language. I have a node that writes data in file and name of that file is "pose.csv". I need to make sure that every time I start that node it writes data in new file, so result is should be like then I start node first time it loads data in file "pose_1.csv", than I started it second time the file should be "pose2.csv". Is there a way to achieve this using ros. As far as I know there is no way to check, how many times node has been run, but I could be wrong. Appreciate any help.

edit retag flag offensive close merge delete

Comments

I am sorry, but this is unrelated to ROS.

ravijoshi gravatar image ravijoshi  ( 2022-10-27 01:44:35 -0600 )edit

Thank you for your reply. I understang

Edvard gravatar image Edvard  ( 2022-10-27 04:08:14 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-10-27 01:36:44 -0600

gvdhoorn gravatar image

Is there a way to check for a file with specific name with ros?

No, this is standard functionality (of the programming language you are using) and is not part of ROS.

edit flag offensive delete link more

Comments

Thank you for your answer.

Edvard gravatar image Edvard  ( 2022-10-27 04:08:32 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2022-10-27 01:21:06 -0600

Seen: 69 times

Last updated: Oct 27 '22