How to locate a ros file with a relative path [closed]

asked 2018-09-10 03:11:26 -0600

itfanr gravatar image

updated 2018-09-10 03:12:14 -0600

I want to open a file in other package or a file not in current folder.

Does ros have functions to get a relative path of file without a rospack command?

For example, to read change_log.txt from test.cpp:

package a/test.cpp package b/change_log.txt

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by gvdhoorn
close date 2018-09-10 04:03:27.149522

Comments

refer to: #q73906.

itfanr gravatar image itfanr  ( 2018-09-10 03:14:43 -0600 )edit