Exemplo n.º 1
0
	    private void DeleteEntityNotificationHandler(DeleteSimulationEntity parameter0)
	    {
	        _robotArm = null;
	    }
Exemplo n.º 2
0
	    private void PopulateWorld()
        {
            AddSky();
            AddGround();
     //       AddBlocks();

            // Add an overhead camera
       //     AddCamera();

            // Create and place the dominos
         //   SpawnIterator(CreateDominos);

            // Create a LynxL6Arm Entity positioned at the origin
            var robotArm = new SimulatedRobotArmEntity(RobotArmEntityName, new Vector3(0, 0, 0));
            SimulationEngine.GlobalInstancePort.Insert(robotArm);

	        var targetProps = new SphereShapeProperties(0, new Pose(), 0.0025f);
	        var shape = new SphereShape(targetProps);
	        shape.State.DiffuseColor = new Vector4(0.1f, 0f, 1f, 1f);
            _moveTargetEntity = new SingleShapeEntity(shape, new Vector3(0f, 0.2f, 0.1f));
	        _moveTargetEntity.State.Name = "Move To Target";
	        SimulationEngine.GlobalInstancePort.Insert(_moveTargetEntity);
        }
Exemplo n.º 3
0
	    private void InsertEntityNotificationHandler(InsertSimulationEntity ins)
	    {
            _robotArm = (SimulatedRobotArmEntity)ins.Body;
            _robotArm.ServiceContract = Contract.Identifier;

	    }