Closed trieuthachvu closed 2 years ago
You don't need to modify setup mode
, use Mkz lgsvl
will work. You only need to modify the gps message
You need three below topic
/apollo/sensor/gnss/corrected_imu
/apollo/sensor/gnss/odometry
/apollo/sensor/gnss/ins_stat
Thanks for your information. Could you please give me some hint regarding topic ins_stat
I fail to understand ins_status and pos_type. From Cyber_monitor, I capture data from LGSVL, ins_status = 3 and pos_type = 56. These data do not change when the ego vehicle moves. Where these data come from?
which apollo version do you use, I found above 5.0 the message is below type https://github.com/ApolloAuto/apollo/blob/259756578b4c01ee07b98f72ab9f874818bee200/modules/drivers/gnss/proto/gnss_status.proto#L19-L34
so the type
is a enum, for example type = 2
is GOOD
I use apollo 6.0, I thought messgage InsStat have nothing relating to message InsStatus Anyways, I set it as 2 "GOOD" to perform the test. This is my localization pole The dreamview is now visible but the HD map is not there
I am not sure if the problem is because of HD map. I try to figure out where is the problem come from If I turn on the Sim Control. It is able to load HD map. I also set the destination and run the simulation. It works fine. does it mean the HD map working fine? if so then maybe something wrong or missing with IMU and GPS data.
Yes, sim_control
will automatically find nearby road and load it, I think you need to check the location of the gps
Yes, it is right. I take the position data from Sim Control and feeding it to localization module. I am able to see the HD map. I try to change my simulator to different coordinates but still not able to get similar position as Sim Control.
I have a question regarding the system coordinates (Inertial/GPS(Geo)/Vehicle coordinates). My simulator supports to output data in different coordinates. In apollo Cyber message apollo::drivers::gnss::Imu, look like it is in vehicle coordinates
apollo::localization::Gps and apollo::localization::CorrectedImu look like it is in Inertial coordinates.
Does it have to be like GPS (must be in Geo Co-ordinates) and IMU (in Inertial)?
I found in Apollo documents, y axis point out the front of vehicle.
but in my simulator systems, it is x axis pointing out the front of vehicle
In addition, is there any chance that when I convert standard OpenDrive to Apollo HD map, the coordinates and origin are also changed ?
I think the car body coordinate affects the perception module but not localization.
localization is an UTM coordinate, so I think you should check the simulation is output UTM but not gps. Here is a doc
You are right, it does not impact on GPS location. If x, y & z positions on HD map have the same unit as meter (m) then I found there is a mismatch on the map location between the map on simulator and the HD map
apollo-hd-map
.simulation-map
. It is usually a relative position map, so the simulator will add rotation and translation and convert it into gps coordinatesSo I guess there is no good match between the two. I don't know how the map in your simulator and the map of Apollo are generated. There may be a problem!!!
Yes, my simulator use cartesian xyz. look like I got to convert cartesian to lat long (geo) then to UTM by using proj4 string. although I do not really understand proj4.
Hi, check out this website.
https://ntutangyun.github.io/apollo-hd-map-viewer/
you may simply upload the base_map.bin to visualize it.
Hi,
As I understand, with IMU sensor and GPS sensor data from LGSVL. When we turn on the localization module on the dreamview the HD map will be visualized with the ego vehicle on it. I want to do the same for another simulator. Below are my IMU and GPS sensor data I have
IMU
GPS
My questions: