Tabnine Logo
PeriodicThreadScheduler.schedule
Code IndexAdd Tabnine to your IDE (free)

How to use
schedule
method
in
us.ihmc.util.PeriodicThreadScheduler

Best Java code snippets using us.ihmc.util.PeriodicThreadScheduler.schedule (Showing top 8 results out of 315)

origin: us.ihmc/ihmc-robot-data-logger

public void start()
{
 scheduler.schedule(variableUpdateThread, 1, TimeUnit.MILLISECONDS);
}
origin: us.ihmc/ihmc-robot-data-logger

public void start()
{
 scheduler.schedule(runner, 100, TimeUnit.MILLISECONDS);
}
origin: us.ihmc/ihmc-ros2-library

/**
* Start publishing data for this RealtimeRos2Node
* 
* A periodic thread is spawned that will publish all data every millisecond. 
* 
*/
public void spin()
{
 startupLock.lock();
 if (spinning)
 {
   throw new RuntimeException("This RealtimeRos2Node is already spinning");
 }
 spinning = true;
 scheduler.schedule(this::realtimeNodeThread, THREAD_PERIOD_MICROSECONDS, TimeUnit.MICROSECONDS);
 startupLock.unlock();
}
origin: us.ihmc/SensorProcessing

private void startWriterThread()
{
 dataProducer.registerPacketToSkipQueue(RobotConfigurationData.class);
 scheduler.schedule(new Runnable()
 {
   @Override
   public void run()
   {
    try
    {
      if (robotConfigurationDataRingBuffer.poll())
      {
       RobotConfigurationData robotConfigData;
       while ((robotConfigData = robotConfigurationDataRingBuffer.read()) != null)
       {
         dataProducer.skipQueueAndSend(robotConfigData);
       }
       robotConfigurationDataRingBuffer.flush();
      }
    }
    catch(Throwable throwable)
    {
      throwable.printStackTrace();
    }
   }
 }, WORKER_SLEEP_TIME_MILLIS, TimeUnit.MILLISECONDS);
}
origin: us.ihmc/RobotDataCommunication

public void start()
{
 try
 {
   // Make server here, so it is open before the logger connects
   server = new MultiClientStreamingDataTCPServer(session.getPort(), handshakeBuilder, logModelProvider, compressedBackingArray.length, SEND_BUFFER_LENGTH);
   server.start();
 }
 catch (IOException e)
 {
   throw new RuntimeException(e);
 }
 scheduler.schedule(this, 1, TimeUnit.MILLISECONDS);
}
origin: us.ihmc/IHMCRobotDataLogger

public void start()
{
 try
 {
   // Make server here, so it is open before the logger connects
   server = new MultiClientStreamingDataTCPServer(session.getPort(), handshakeBuilder, logModelProvider, summaryProvider, compressedBackingArray.length, SEND_BUFFER_LENGTH);
   server.start();
 }
 catch (IOException e)
 {
   throw new RuntimeException(e);
 }
 scheduler.schedule(this, 1, TimeUnit.MILLISECONDS);
}
origin: us.ihmc/CommonWalkingControlModules

public ControllerNetworkSubscriber(CommandInputManager controllerCommandInputManager, StatusMessageOutputManager controllerStatusOutputManager,
   PeriodicThreadScheduler scheduler, PacketCommunicator packetCommunicator)
{
 this.controllerCommandInputManager = controllerCommandInputManager;
 this.controllerStatusOutputManager = controllerStatusOutputManager;
 this.scheduler = scheduler;
 this.packetCommunicator = packetCommunicator;
 listOfSupportedStatusMessages = controllerStatusOutputManager.getListOfSupportedMessages();
 if (packetCommunicator == null)
 {
   PrintTools.error(this, "No packet communicator, " + getClass().getSimpleName() + " cannot be created.");
   return;
 }
 listOfSupportedStatusMessages.add(InvalidPacketNotificationPacket.class);
 createAllSubscribersForSupportedMessages();
 createGlobalStatusMessageListener();
 createAllStatusMessageBuffers();
 if (scheduler != null)
   scheduler.schedule(this, 1, TimeUnit.MILLISECONDS);
}
origin: us.ihmc/ihmc-robot-data-logger

dataProducerParticipant.announce();
timestampScheduler.schedule(timestampPublisher, 100, TimeUnit.MICROSECONDS);
us.ihmc.utilPeriodicThreadSchedulerschedule

Javadoc

Schedule a new periodic thread

Popular methods of PeriodicThreadScheduler

  • shutdown
    Shutdown the periodic thread. No new runnables can be scheduled. Running threads are allowed to fini
  • awaitTermination
    Await termination of this thread. This will not stop the running thread. The timeout is optionally i

Popular in Java

  • Reading from database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setRequestProperty (URLConnection)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JOptionPane (javax.swing)
  • From CI to AI: The AI layer in your organization
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