Skip to content
Snippets Groups Projects
Commit 1fae2c0a authored by Paul Beuchat's avatar Paul Beuchat
Browse files

Corrected delaration of a quadrotor simulation in the CrazyRadioEmulator node,...

Corrected delaration of a quadrotor simulation in the CrazyRadioEmulator node, required editing the CMakeList
parent 75d7e89e
No related branches found
No related tags found
No related merge requests found
......@@ -400,6 +400,7 @@ add_executable(FlyingAgentClient src/nodes/FlyingAgentClient.cpp
add_executable(BatteryMonitor src/nodes/BatteryMonitor.cpp
src/classes/GetParamtersAndNamespaces.cpp)
add_executable(CrazyRadioEmulator src/nodes/CrazyRadioEmulator.cpp
src/classes/QuadrotorSimulator.cpp
src/classes/GetParamtersAndNamespaces.cpp)
add_executable(CsoneControllerService src/nodes/CsoneControllerService.cpp
src/classes/GetParamtersAndNamespaces.cpp)
......
......@@ -169,8 +169,7 @@ float yaml_cfStateEstimate_polling_period_in_seconds = 0.2f;
// A QUADROTORS SIMULATOR
//std::vector<QuadrotorSimulator> m_quadrotor_fleet;
QuadrotorSimulator m_quadrotor_sim();
QuadrotorSimulator m_quadrotor_sim;
......
......@@ -548,6 +548,20 @@ int main(int argc, char* argv[])
// INITIALISE THE QUADROTOR SIMULATOR
// > First conver the agentID to a zero-padded string
// Convert the agent ID to a zero padded string
std::ostringstream str_stream;
str_stream << std::setw(3) << std::setfill('0') << m_agentID;
std::string agentID_as_string(str_stream.str());
// > Initialise the quadrotor simulator class variable
QuadrotorSimulator m_quadrotor_sim = QuadrotorSimulator( "CFSIM" + agentID_as_string , 0.032 );
// > Inform the user
ROS_INFO_STREAM("[CRAZY RADIO EMULATOR] Initilised quadrotor simulation with ID = " << m_quadrotor_sim.get_id_string() << ", and mass in kg = " << m_quadrotor_sim.get_mass_in_kg() );
// PUBLISHERS
// Get a node handle to the Flying Agent Client
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment