Harvard-REACT / WSR-Toolbox-cpp

Core C++ code repo for WSR toolbox with Cython wrapper.
BSD 2-Clause "Simplified" License
3 stars 1 forks source link

Incorrect position data updated in the output json file. #18

Closed ninja-hu closed 2 years ago

ninja-hu commented 2 years ago

All the position information is updated as true position of the receiving robot.

            {"a_INFO_Transmitting_robot",{
                {"Name",tx_name},
                {"MAC_ID",tx_mac_id},
                {"groundtruth_position",{   //This needs to be true TX positions
                    {"x", pos(0,0)},
                    {"y",pos(0,1)},
                    {"z",pos(0,2)},
                    {"yaw",pos(0,3)}
                }},
                {"groundtruth_azimuth",true_phi},
                {"groundtruth_elevation",true_theta}
            }},
            {"b_INFO_Receiving_robot",{
                {"id", pos_idx},
                {"displacement_type", __trajType},
                {"estimated_start_position_",{ //This needs to be estimated RX positions
                    {"x", pos(0,0)},
                    {"y",pos(0,1)},
                    {"z",pos(0,2)},
                    {"yaw",pos(0,3)}
                }},
                {"groundtruth_start_position",{  //This is correct.
                    {"x", pos(0,0)},
                    {"y",pos(0,1)},
                    {"z",pos(0,2)},
                    {"yaw",pos(0,3)}
                }}

The nlohmann::json WSR_Module::get_stats function needs to be updated.