空的模板:
/*
* File:
* Date:
* Description:
* Author:
* Modifications:
*/
/*
* You may need to add include files like
or
*
, etc.
*/
#include
/*
* You may want to add defines macro here.
*/
#define TIME_STEP 64
/*
* You should put some helper functions here
*/
/*
* This is the main program.
* The arguments of the main function can be specified by the
* "controllerArgs" field of the Robot node
*/
int main(int argc, char **argv)
{
/* necessary to initialize webots stuff */
wb_robot_init();
/*
* You should declare here DeviceTag variables for storing
* robot devices like this:
* WbDeviceTag my_sensor = wb_robot_get_device("my_sensor");
* WbDeviceTag my_actuator = wb_robot_get_device("my_actuator");
*/