本文整理了Java中us.ihmc.simulationconstructionset.SimulationConstructionSet.startStreamingVideoData()
方法的一些代码示例,展示了SimulationConstructionSet.startStreamingVideoData()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SimulationConstructionSet.startStreamingVideoData()
方法的具体详情如下:
包路径:us.ihmc.simulationconstructionset.SimulationConstructionSet
类名称:SimulationConstructionSet
方法名:startStreamingVideoData
暂无
代码示例来源:origin: us.ihmc/IHMCAvatarInterfaces
public LocalObjectCommunicator createSimulatedSensorsPacketCommunicator()
{
scsSensorOutputPacketCommunicator = new LocalObjectCommunicator();
if (createSCSSimulatedSensors)
{
DRCRobotSensorInformation sensorInformation = robotModel.getSensorInformation();
DRCRobotJointMap jointMap = robotModel.getJointMap();
TimestampProvider timeStampProvider = avatarSimulation.getSimulatedRobotTimeProvider();
HumanoidFloatingRootJointRobot robot = avatarSimulation.getHumanoidFloatingRootJointRobot();
Graphics3DAdapter graphics3dAdapter = simulationConstructionSet.getGraphics3dAdapter();
printIfDebug("Streaming SCS Video");
DRCRobotCameraParameters cameraParameters = sensorInformation.getCameraParameters(0);
if (cameraParameters != null)
{
String cameraName = cameraParameters.getSensorNameInSdf();
int width = sdfRobot.getCameraMount(cameraName).getImageWidth();
int height = sdfRobot.getCameraMount(cameraName).getImageHeight();
CameraConfiguration cameraConfiguration = new CameraConfiguration(cameraName);
cameraConfiguration.setCameraMount(cameraName);
int framesPerSecond = 25;
DRCRenderedSceneVideoHandler drcRenderedSceneVideoHandler = new DRCRenderedSceneVideoHandler(scsSensorOutputPacketCommunicator);
simulationConstructionSet.startStreamingVideoData(cameraConfiguration, width, height, drcRenderedSceneVideoHandler, timeStampProvider, framesPerSecond);
}
for (DRCRobotLidarParameters lidarParams : sensorInformation.getLidarParameters())
{
DRCLidar.setupDRCRobotLidar(robot, graphics3dAdapter, scsSensorOutputPacketCommunicator, jointMap, lidarParams, timeStampProvider, true);
}
}
return scsSensorOutputPacketCommunicator;
}
代码示例来源:origin: us.ihmc/DarpaRoboticsChallenge
simulationConstructionSet.startStreamingVideoData(cameraConfiguration, width, height, drcRenderedSceneVideoHandler, timeStampProvider, framesPerSecond);
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces
simulationConstructionSet.startStreamingVideoData(cameraConfiguration, width, height, new VideoDataServerImageCallback(drcRenderedSceneVideoHandler), timeStampProvider,
framesPerSecond);
内容来源于网络,如有侵权,请联系作者删除!