int main(int argc, char *argv[])
{
    platform_initialize();
    platform_add_objectset(new NormalRobot(1.1, -0.7, 0.1, M_PI, 0.04, 0.3, 0.2, 0.1, 3));
    platform_add_objectset(new ObstacleField());
    platform_start(argc, argv);

    return 0;
}
int main(int argc, char *argv[])
{
    platform_initialize();
    platform_add_objectset(new NormalRobot(1, 0, 0.1, M_PI/2, 0.1, 0.7, 0.4, 0.2, 1));
    platform_add_objectset(new ObstacleField());

    Marker *pos_marker = new Marker();
    marker = pos_marker->id();
    platform_add_objectset(pos_marker);
    
    platform_start(argc, argv);

    return 0;
}
int main(int argc, char *argv[])
{
    platform_initialize();
    platform_add_objectset(new RollerRobot());

    Indicator *ir = new Indicator(0, 1);
    difference_indicator_id = ir->id();
    platform_add_objectset(ir);

    platform_add_objectset(new SlopeField());
    platform_start(argc, argv);

    return 0;
}
int main(int argc, char *argv[])
{
    platform_initialize();
    NormalRobot *robot = new NormalRobot(1, 0, 0.1, M_PI/2, 0.1, 0.7, 0.4, 0.2, 1);
    platform_add_objectset(robot);
    platform_add_objectset(new ObstacleField());

    robot->setFriction(true);
    robot->setRealMotor(false);

    Marker *pos_marker = new Marker();
    marker = pos_marker->id();
    platform_add_objectset(pos_marker);
    
    platform_start(argc, argv);

    return 0;
}
Example #5
0
int hibernation_snapshot(int platform_mode)
{
	int error;

	/* Free memory before shutting down devices. */
	error = swsusp_shrink_memory();
	if (error)
		return error;

	error = platform_start(platform_mode);
	if (error)
		return error;

	suspend_console();
	error = device_suspend(PMSG_FREEZE);
	if (error)
		goto Resume_console;

	error = platform_pre_snapshot(platform_mode);
	if (error)
		goto Resume_devices;

	error = disable_nonboot_cpus();
	if (!error) {
		if (hibernation_mode != HIBERNATION_TEST) {
			in_suspend = 1;
			error = create_image(platform_mode);
			/* Control returns here after successful restore */
		} else {
			printk("swsusp debug: Waiting for 5 seconds.\n");
			mdelay(5000);
		}
	}
	enable_nonboot_cpus();
 Resume_devices:
	platform_finish(platform_mode);
	device_resume();
 Resume_console:
	resume_console();
	return error;
}