8 #include <argos3/core/simulator/visualization/visualization.h>
9 #include <argos3/core/simulator/physics_engine/physics_engine.h>
10 #include <argos3/core/simulator/entity/entity.h>
11 #include <argos3/core/simulator/actuator.h>
12 #include <argos3/core/simulator/sensor.h>
20 LOG <<
"Plugins matching \"" << str_query <<
"\":" << std::endl << std::endl;
24 QuerySearchPlugins<CSimulatedActuator>(str_query, tResult);
25 QuerySearchPlugins<CSimulatedSensor> (str_query, tResult);
26 QuerySearchPlugins<CPhysicsEngine> (str_query, tResult);
27 QuerySearchPlugins<CMedium> (str_query, tResult);
28 QuerySearchPlugins<CVisualization> (str_query, tResult);
29 QuerySearchPlugins<CEntity> (str_query, tResult);
32 LOG <<
" None found." << std::endl << std::endl;
35 LOG <<
"==============================================================================" << std::endl << std::endl;
36 for(
UInt32 i = 0; i < tResult.size(); ++i) {
37 LOG <<
"[ " << tResult[i].Label <<
" ] " << std::endl;
38 LOG << tResult[i].BriefDescription << std::endl;
39 LOG <<
"by " << tResult[i].Author << std::endl;
40 LOG <<
"Version: " << tResult[i].Version << std::endl;
41 LOG <<
"Status: " << tResult[i].Status << std::endl << std::endl;
42 LOG << tResult[i].LongDescription << std::endl;
44 LOG <<
"==============================================================================" << std::endl << std::endl;
56 if(str_query ==
"actuators") {
57 QueryShowList<CSimulatedActuator>(
"AVAILABLE ACTUATORS");
58 }
else if(str_query ==
"sensors") {
59 QueryShowList<CSimulatedSensor>(
"AVAILABLE SENSORS");
60 }
else if(str_query ==
"physics_engines") {
61 QueryShowList<CPhysicsEngine>(
"AVAILABLE PHYSICS ENGINES");
62 }
else if(str_query ==
"media") {
63 QueryShowList<CMedium>(
"AVAILABLE MEDIA");
64 }
else if(str_query ==
"visualizations") {
65 QueryShowList<CVisualization>(
"AVAILABLE VISUALIZATIONS");
66 }
else if(str_query ==
"entities") {
67 QueryShowList<CEntity>(
"AVAILABLE ENTITIES");
68 }
else if(str_query ==
"all") {
69 QueryShowList<CSimulatedActuator>(
"AVAILABLE ACTUATORS");
70 QueryShowList<CSimulatedSensor> (
"AVAILABLE SENSORS");
71 QueryShowList<CPhysicsEngine> (
"AVAILABLE PHYSICS ENGINES");
72 QueryShowList<CMedium> (
"AVAILABLE MEDIA");
73 QueryShowList<CVisualization> (
"AVAILABLE VISUALIZATIONS");
74 QueryShowList<CEntity> (
"AVAILABLE ENTITIES");
unsigned int UInt32
32-bit unsigned integer.
The namespace containing all the ARGoS related code.
CARGoSLog LOGERR(std::cerr, SLogColor(ARGOS_LOG_ATTRIBUTE_BRIGHT, ARGOS_LOG_COLOR_RED))
void QueryPlugins(const std::string &str_query)
CARGoSLog LOG(std::cout, SLogColor(ARGOS_LOG_ATTRIBUTE_BRIGHT, ARGOS_LOG_COLOR_GREEN))
void QueryShowPluginDescription(const std::string &str_query)
std::vector< SQueryResultItem > TQueryResult
bool IsColoredOutput() const
void DisableColoredOutput()
void EnableColoredOutput()