Tabnine Logo
us.ihmc.util
Code IndexAdd Tabnine to your IDE (free)

How to use us.ihmc.util

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

origin: us.ihmc/IHMCRealtime

@Override
public PeriodicThreadScheduler createPeriodicThreadScheduler(String name)
{
 return new PeriodicNonRealtimeThreadScheduler(name);
}
origin: us.ihmc/IHMCRealtime

/**
* Make all objects set using @see{next} since last commit visible to the consumer 
* 
*/
public void commit()
{
 // Set the commitPosition to writePosition. Writing to commitPosition inserts a memory write barrier
 
 commitPosition.set(writePosition);
}
origin: us.ihmc/CommonWalkingControlModules

@Override
public void closeAndDispose()
{
 if (scheduler != null)
   scheduler.shutdown();
}
origin: us.ihmc/ihmc-avatar-interfaces

private void initialize(String rosNameSpace)
{
 rosMainNode.attachPublisher(rosNameSpace + "/output/high_level_state", statePublisher);
 scheduler.schedule(this, 1, TimeUnit.MILLISECONDS);
}
origin: us.ihmc/ihmc-robot-data-logger

public void stop()
{
 scheduler.shutdown();
 try
 {
   scheduler.awaitTermination(1, TimeUnit.SECONDS);
 }
 catch (InterruptedException e)
 {
 }
}

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

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

@Override
public PeriodicThreadScheduler createPeriodicThreadScheduler(String name)
{
 return new PeriodicRealtimeThreadScheduler(name, priority);
}
origin: us.ihmc/ihmc-realtime

public ChangeListenerLongBuffer(int capacity)
{
 capacity = RealtimeTools.nextDivisibleBySixteen(capacity);
 
 valueChanged = new boolean[capacity];
 values = new long[capacity];
}
origin: us.ihmc/ihmc-realtime

/**
* Get latest data from producer. Run before a sequence of @see{read}
* 
* @return true if there is new data available
*/
public boolean poll()
{
 // Reading from commitPosition inserts a memory read barrier, making sure that this thread's caches are coherent
 readLimit = commitPosition.get();
 
 if(readPosition < readLimit)
 {
   return true;
 }
 else
 {
   return false;
 }
}
origin: us.ihmc/RobotDataCommunication

public FullStateBuffer(int variableOffset, List<YoVariable<?>> variables, List<JointHolder> jointHolders)
{
 super(variableOffset, variables);
 this.numberOfJointStates = getNumberOfJointStates(jointHolders);
 this.jointStates = new double[RealtimeTools.nextDivisibleByEight(this.numberOfJointStates)];
 this.jointHolders = jointHolders;
}
origin: us.ihmc/IHMCAvatarInterfaces

private void initialize(String rosNameSpace)
{
 rosMainNode.attachPublisher(rosNameSpace + "/output/high_level_state", statePublisher);
 scheduler.schedule(this, 1, TimeUnit.MILLISECONDS);
}
origin: us.ihmc/SensorProcessing

  public void stop()
  {
   scheduler.shutdown();
  }
}
origin: us.ihmc/ihmc-realtime

@Override
public PeriodicThreadScheduler createPeriodicThreadScheduler(String name)
{
 return new PeriodicNonRealtimeThreadScheduler(name);
}
origin: us.ihmc/ihmc-robot-data-logger

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

@Override
public PeriodicThreadScheduler createPeriodicThreadScheduler(String name)
{
 return new PeriodicRealtimeThreadScheduler(name, priority);
}
origin: us.ihmc/IHMCRealtime

/**
* Flushes read objects, making them available for writing. Call after @see{read}
*/
public void flush()
{
 consumerPosition.set(readPosition);
}
origin: us.ihmc/IHMCRealtime

public ChangeListenerLongBuffer(int capacity)
{
 capacity = RealtimeTools.nextDivisibleBySixteen(capacity);
 
 valueChanged = new boolean[capacity];
 values = new long[capacity];
}
origin: us.ihmc/IHMCRobotDataLogger

  public void close()
  {
   scheduler.shutdown();
   server.close();
   
  }
}
origin: us.ihmc/ihmc-realtime

/**
* Make all objects set using @see{next} since last commit visible to the consumer 
* 
*/
public void commit()
{
 // Set the commitPosition to writePosition. Writing to commitPosition inserts a memory write barrier
 
 commitPosition.set(writePosition);
}
origin: us.ihmc/ihmc-realtime

/**
* Flushes read objects, making them available for writing. Call after @see{read}
*/
public void flush()
{
 consumerPosition.set(readPosition);
}
us.ihmc.util

Most used classes

  • RosMainNode
  • RosPointCloudSubscriber$UnpackedPointCloud
  • PeriodicNonRealtimeThreadScheduler
  • RosServiceClient
  • RosTf2Publisher
  • GenericROSTranslationTools,
  • RealtimeTools,
  • ROSMessageFileCreator,
  • RosDynamicReconfigure,
  • RosTools,
  • RosBoolPublisher,
  • RosCameraInfoPublisher,
  • RosClockPublisher,
  • RosImagePublisher,
  • RosImuPublisher,
  • RosInt32Publisher,
  • RosJointStatePublisher,
  • RosLastReceivedMessagePublisher,
  • RosLidarPublisher
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