Tabnine Logo
AvatarSimulation.simulate
Code IndexAdd Tabnine to your IDE (free)

How to use
simulate
method
in
us.ihmc.avatar.factory.AvatarSimulation

Best Java code snippets using us.ihmc.avatar.factory.AvatarSimulation.simulate (Showing top 7 results out of 315)

origin: us.ihmc/valkyrie

public void simulate()
{
  System.out.println("Starting simulation");
  avatarSimulation.simulate();
}
origin: us.ihmc/IHMCAvatarInterfaces

public void createSimulation(DRCNetworkModuleParameters networkParameters, boolean automaticallySpawnSimulation, boolean automaticallySimulate)
{
 if ((networkParameters != null))
 {
   createControllerCommunicator(networkParameters);
 }
 this.avatarSimulation = createAvatarSimulation();
 if (automaticallySpawnSimulation)
   avatarSimulation.start();
 if (automaticallySpawnSimulation && automaticallySimulate)
   avatarSimulation.simulate();
 if ((networkParameters != null) && networkParameters.isNetworkProcessorEnabled()) //&& (networkParameters.useController()))
 {
   startNetworkProcessor(networkParameters);
 }
}
origin: us.ihmc/ihmc-avatar-interfaces

public void createSimulation(DRCNetworkModuleParameters networkParameters, boolean automaticallySpawnSimulation, boolean automaticallySimulate)
{
 if ((networkParameters != null))
 {
   createControllerCommunicator(networkParameters);
 }
 this.avatarSimulation = createAvatarSimulation();
 if (automaticallySpawnSimulation)
   avatarSimulation.start();
 if (realtimeRos2Node != null)
   realtimeRos2Node.spin();
 if (automaticallySpawnSimulation && automaticallySimulate)
   avatarSimulation.simulate();
 if ((networkParameters != null) && networkParameters.isNetworkProcessorEnabled()) //&& (networkParameters.useController()))
 {
   startNetworkProcessor(networkParameters);
 }
}
origin: us.ihmc/acsell

public static void main(String[] args)
{
 boolean USE_JOYSTICK_CONTROLLER = Joystick.isAJoystickConnectedToSystem();
 WandererRobotModel robotModel = new WandererRobotModel(false, false);
 DRCGuiInitialSetup guiInitialSetup = new DRCGuiInitialSetup(true, false);
 final double groundHeight = 0.0;
 GroundProfile3D groundProfile = new FlatGroundProfile(groundHeight);
 DRCSCSInitialSetup scsInitialSetup = new DRCSCSInitialSetup(groundProfile, robotModel.getSimulateDT());
 scsInitialSetup.setDrawGroundProfile(true);
 scsInitialSetup.setInitializeEstimatorToActual(true);
 double initialYaw = 0.3;
 DRCRobotInitialSetup<HumanoidFloatingRootJointRobot> robotInitialSetup = robotModel.getDefaultRobotInitialSetup(groundHeight, initialYaw);
 boolean useVelocityAndHeadingScript = !USE_JOYSTICK_CONTROLLER;
 boolean cheatWithGroundHeightAtForFootstep = false;
 HeadingAndVelocityEvaluationScriptParameters walkingScriptParameters = new HeadingAndVelocityEvaluationScriptParameters();
 DRCFlatGroundWalkingTrack flatGroundWalkingTrack = new DRCFlatGroundWalkingTrack(robotInitialSetup, guiInitialSetup, scsInitialSetup,
                            useVelocityAndHeadingScript, cheatWithGroundHeightAtForFootstep, robotModel,
                            WalkingProvider.VELOCITY_HEADING_COMPONENT, walkingScriptParameters);
 SimulationConstructionSet scs = flatGroundWalkingTrack.getSimulationConstructionSet();
 if (USE_JOYSTICK_CONTROLLER)
 {
   setupJoyStick(scs);
   flatGroundWalkingTrack.getAvatarSimulation().start();
   flatGroundWalkingTrack.getAvatarSimulation().simulate();
 }
}
origin: us.ihmc/acsell

public static void main(String[] args)
{
 boolean USE_JOYSTICK_CONTROLLER = Joystick.isAJoystickConnectedToSystem();
 BonoRobotModel robotModel = new BonoRobotModel(false, false);
 DRCGuiInitialSetup guiInitialSetup = new DRCGuiInitialSetup(true, false);
 final double groundHeight = 0.0;
 GroundProfile3D groundProfile = new FlatGroundProfile(groundHeight);
 DRCSCSInitialSetup scsInitialSetup = new DRCSCSInitialSetup(groundProfile, robotModel.getSimulateDT());
 scsInitialSetup.setDrawGroundProfile(true);
 scsInitialSetup.setInitializeEstimatorToActual(true);
 double initialYaw = 0.3;
 DRCRobotInitialSetup<HumanoidFloatingRootJointRobot> robotInitialSetup = robotModel.getDefaultRobotInitialSetup(groundHeight, initialYaw);
 boolean useVelocityAndHeadingScript = !USE_JOYSTICK_CONTROLLER;
 boolean cheatWithGroundHeightAtForFootstep = false;
 HeadingAndVelocityEvaluationScriptParameters walkingScriptParameters = new HeadingAndVelocityEvaluationScriptParameters();
 DRCFlatGroundWalkingTrack flatGroundWalkingTrack = new DRCFlatGroundWalkingTrack(robotInitialSetup, guiInitialSetup, scsInitialSetup,
                            useVelocityAndHeadingScript, cheatWithGroundHeightAtForFootstep, robotModel,
                            WalkingProvider.VELOCITY_HEADING_COMPONENT, walkingScriptParameters);
 SimulationConstructionSet scs = flatGroundWalkingTrack.getSimulationConstructionSet();
 if (USE_JOYSTICK_CONTROLLER)
 {
   setupJoyStick(scs);
   flatGroundWalkingTrack.getAvatarSimulation().start();
   flatGroundWalkingTrack.getAvatarSimulation().simulate();
 }
}
origin: us.ihmc/thor

flatGroundWalkingTrack.getAvatarSimulation().simulate();
origin: us.ihmc/acsell

               useVelocityAndHeadingScript, cheatWithGroundHeightAtForFootstep, robotModel);
flatGroundWalkingTrack.getAvatarSimulation().start();
flatGroundWalkingTrack.getAvatarSimulation().simulate();
SimulationConstructionSet scs = flatGroundWalkingTrack.getSimulationConstructionSet();
us.ihmc.avatar.factoryAvatarSimulationsimulate

Popular methods of AvatarSimulation

  • getHumanoidFloatingRootJointRobot
  • start
  • dispose
  • getSimulationConstructionSet
  • <init>
  • getFullRobotModelCorruptor
  • getHighLevelHumanoidControllerFactory
  • getSimulatedRobotTimeProvider
  • setCloseableAndDisposableRegistry
  • setControllerThread
  • setHumanoidFloatingRootJointRobot
  • setSimulatedRobotTimeProvider
  • setHumanoidFloatingRootJointRobot,
  • setSimulatedRobotTimeProvider,
  • setSimulationConstructionSet,
  • setStateEstimationThread,
  • setThreadDataSynchronizer,
  • setThreadedRobotController,
  • setYoVariableServer,
  • addRobotControllerOnControllerThread,
  • addRobotControllerOnEstimatorThread

Popular in Java

  • Creating JSON documents from java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (Timer)
  • findViewById (Activity)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now