Skip to content

Commit

Permalink
fix merge issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-du-car committed Jul 27, 2023
1 parent 917fa34 commit 4aef6b1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/v2i-hub/CDASimAdapter/src/CDASimConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ namespace CDASimAdapter{


std::string CDASimConnection::get_handshake_json(const std::string &infrastructure_id, const std::string &local_ip, const uint time_sync_port, const uint simulated_interaction_port, const uint v2x_port,
const Point &location) const
const tmx::utils::Point &location) const

{
Json::Value message;
Expand Down Expand Up @@ -65,7 +65,7 @@ namespace CDASimAdapter{

bool CDASimConnection::carma_simulation_handshake(const std::string &simulation_ip, const std::string &infrastructure_id, const uint simulation_registration_port,
const std::string &local_ip, const uint time_sync_port, const uint simulated_interaction_port, const uint v2x_port,
const Point &location)
const tmx::utils::Point &location)
{
// Create JSON message with the content
std::string payload = "";
Expand Down
14 changes: 7 additions & 7 deletions src/v2i-hub/CDASimAdapter/src/include/CDASimConnection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,19 +137,19 @@ namespace CDASimAdapter {
* @param location simulated location of infrastructure hardware.
* @return true if handshake successful and false if handshake unsuccessful.
*/
std::string get_handshake_json(const std::string &infrastructure_id, const std::string &local_ip, const uint time_sync_port,
const uint v2x_port, const tmx::utils::Point &location) const;
std::string get_handshake_json(const std::string &infrastructure_id, const std::string &local_ip, const uint time_sync_port, const uint simulated_interaction_port, const uint v2x_port,
const tmx::utils::Point &location) const;

/**
* @brief Read local file that has the sensor information in JSON format from disk. Populate global sensor json variable with the information.
* @param file_path A string of file location in the host machine.
* @return A reference to the location where the sensors inforation is updated and stored.
* @brief Read Json file specified by the file path from disk, and convert the json into Json::Value object.
* @param file_path A string of file path in the host machine.
* @return A Json::Value object.
*/
Json::Value read_json_file(const std::string& file_path) const;
/**
* @brief Read local file that has the sensor information in JSON format from disk. Populate global sensor json variable with the information.
* @brief Convert the Json string into Json::Value object.
* @param json_str A JSON string.
* @return A reference to JSON value.
* @return A Json::Value object.
*/
Json::Value string_to_json(const std::string &json_str) const;

Expand Down

0 comments on commit 4aef6b1

Please sign in to comment.