The csv file is always saved on Apollo folder.....
I wish to save in another folder and I have tried a lot off different approaches to save the data in a new folder.
I wish for example to save into different path planning folder, because I am going to run the code for different path planners.
I tried:
I tried a lot of similar approaches to save the csv file in a desired folder ( I have also manually created the Path_Planning_Traces folder inside Apollo folder, however after run the code, it saves the other csv files:imu, gnss, but not the odometry, the one I tried to change the folder)
The code does not return errors.
When I run the block of code that created another directory for example outside docker inside Apollo, for example, the folder is created....but running with bazel-bin the folder or csv file is never created outside the root
Please take a look below.
Is there a flag or option to send to bazel-bin command line or some lines of code that would fix this feature? It seems that is allowable just save the data inside Apollo folder. But this would mess all the produced channels data after I extract them from different path planners.
SUMMARIZE
OS module does not work inside docker?
For example if I run the script below inside docker. the folder I wish is not created:
However if I run the same script outside the Apollo docker image the folder is created as you can check:
Hi I have fixed it is rjust pass the relative path = /apollo/modules....instead /home/usr/apollo
because it is like docker miss itself using the absolute path...
Hi I am running Apollo 6.0 inside Docker, Master
I am trying to save csv data in a desired folder, not in the Apollo on Root folder
Steps to reproduce the issue:
I have written a python script to subscribe to cyber_channels and get and save the data into .csv file. The codes are in my branch https://github.com/marcusvinicius178/apollo/tree/extract_chan_data/cyber/python/cyber_py3/channels_data_extraction It is just build and run inside the docker image with the command:
[autoware-auto-ros1@in-dev-docker:/apollo]$ ./bazel-bin/cyber/python/cyber_py3/channels_data_extraction/channels_extraction
The csv file is always saved on Apollo folder..... I wish to save in another folder and I have tried a lot off different approaches to save the data in a new folder. I wish for example to save into different path planning folder, because I am going to run the code for different path planners. I tried:
Create the folder and join the csv filename
I tried a lot of similar approaches to save the csv file in a desired folder ( I have also manually created the Path_Planning_Traces folder inside Apollo folder, however after run the code, it saves the other csv files:imu, gnss, but not the odometry, the one I tried to change the folder)
The code does not return errors. When I run the block of code that created another directory for example outside docker inside Apollo, for example, the folder is created....but running with bazel-bin the folder or csv file is never created outside the root Please take a look below.
Supporting materials (screenshots, command lines, code/script snippets):
Is there a flag or option to send to bazel-bin command line or some lines of code that would fix this feature? It seems that is allowable just save the data inside Apollo folder. But this would mess all the produced channels data after I extract them from different path planners.
SUMMARIZE
OS module does not work inside docker?
For example if I run the script below inside docker. the folder I wish is not created:
However if I run the same script outside the Apollo docker image the folder is created as you can check: