MAPIRlab / gaden

GADEN: A 3D Gas Dispersion Simulator for Mobile Robot Olfaction in Realistic Environments
GNU Lesser General Public License v3.0
56 stars 34 forks source link

"map" passed to lookupTransform argument target_frame does not exist. #15

Closed kirk0306 closed 3 years ago

kirk0306 commented 5 years ago

Dear developers, Hi!

When I run the launch file roslaunch GADEN_player.launch I get the error and the rpt_plot is blank .

I think GADEN is properly installed, because catkin_make was run without errors. There is only one scenario named _10x6snake in the file _/testenv, I had tried to run the below commands and got outputs:

roslaunch GADEN_preprocessing.launch .. [ INFO] [1564687470.057891299]: Preprocessing done

roslaunch GADEN.launch .. [ WARN] [1564687479.027664857]: [filament] File /home/karuka/catkin_ws/src/olfaction/gaden-master/test_env/10x6_snake/wind_simulations/05ms/wind_at_cell_centers_1.csv_U Does N ot Exists! [ WARN] [1564687479.027731377]: [filament] No more wind data available. Using last Wind snapshopt as SteadyState. .. [filament_simulator-2] process has finished cleanly log file: /home/karuka/.ros/log/fa286c44-b491-11e9-9b46-3413e858c5ff/filament_simulator-2*.log

roslaunch GADEN_player.launch .. [ INFO] [1564690259.227063810]: [fake anemometer]: wind noise: 0.100000 [ INFO] [1564690259.234434708]: [Player] Initializing 1 instances [ERROR] [1564690259.298156718]: "map" passed to lookupTransform argument target_frame does not exist. [ERROR] [1564690259.299691619]: "map" passed to lookupTransform argument target_frame does not exist. [ERROR] [1564690259.300692760]: "map" passed to lookupTransform argument target_frame does not exist. [ERROR] [1564690259.304641330]: "map" passed to lookupTransform argument target_frame does not exist. [ERROR] [1564690259.339587204]: "map" passed to lookupTransform argument target_frame does not exist.


When I try this in docker, the rpt_plot shows some information about MOX sensor, but I still get map error: [ INFO] [1564739869.898903926]: The data provided in the roslaunch file is: [ INFO] [1564739869.898993050]: Sensor model: 0 [ INFO] [1564739869.899013439]: Fixed frame: map [ INFO] [1564739869.899037516]: Sensor frame: mox0_frame [ERROR] [1564739869.909679069]: "map" passed to lookupTransform argument target_frame does not exist. process[Mox01/fake_mox-8]: started with pid [11272] [ INFO] [1564739870.032379941]: The data provided in the roslaunch file is: [ INFO] [1564739870.032465837]: Sensor model: 1 [ INFO] [1564739870.032489484]: Fixed frame: map [ INFO] [1564739870.032510124]: Sensor frame: mox1_frame [ERROR] [1564739870.045695617]: "map" passed to lookupTransform argument target_frame does not exist. process[Mox02/fake_mox-9]: started with pid [11304] [ INFO] [1564739870.168956773]: The data provided in the roslaunch file is: [ INFO] [1564739870.169069584]: Sensor model: 2 [ INFO] [1564739870.169112096]: Fixed frame: map [ INFO] [1564739870.169157154]: Sensor frame: mox2_frame [ERROR] [1564739870.186675179]: "map" passed to lookupTransform argument target_frame does not exist. process[PID/fake_pid-10]: started with pid [11337] [ INFO] [1564739870.321006666]: The data provided in the roslaunch file is: [ INFO] [1564739870.321111828]: Sensor model: 30 [ INFO] [1564739870.321139194]: Fixed frame: map [ INFO] [1564739870.321179821]: Sensor frame: pid_frame [ERROR] [1564739870.340633288]: "map" passed to lookupTransform argument target_frame does not exist. process[anemometer_broadcaster-11]: started with pid [11368] process[Anemometer01/fake_anemometer-12]: started with pid [11401] [ INFO] [1564739870.590835196]: [fake anemometer]: wind noise: 0.100000 [ERROR] [1564739870.611087688]: "map" passed to lookupTransform argument target_frame does not exist. Please help me!

aravindsrj commented 4 years ago

I too get the same issue: [ERROR] [1586985775.413528625, 31.300000000]: "map" passed to lookupTransform argument target_frame does not exist.

PepeOjeda commented 3 years ago

Hello, sorry for the late response. The "map" frame transform is published by the map_server node, if you are using the sample .launch files provided with gaden. If you have modified them, check the file you are using includes the lines:

"\ \ \"

, where the value of "args" should be a valid path to the .yaml file generated by the preprocessing node.

That being said, it is normal for this error to occur right at the time of launching, since all nodes are started at the same time, and the nodes that try to use the transform might start working before it has been first published. If this is the case, the error should only appear at the moment of launching, and then it dissappears and does not affect the functioning of the program in any way.

On the other hand, if the error persists, there is almost definitely something wrong with the map_server node. Could be that it's not properly installed, that it's not included in the .launch file, or that the .yaml and .pgm files that define the map do not exist.