当前位置: 首页>>代码示例>>C++>>正文


C++ setPresenceVector函数代码示例

本文整理汇总了C++中setPresenceVector函数的典型用法代码示例。如果您正苦于以下问题:C++ setPresenceVector函数的具体用法?C++ setPresenceVector怎么用?C++ setPresenceVector使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了setPresenceVector函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: setPresenceVector

int GuiControlEntered::GuiControlEnteredBody::GuiControlEnteredRecord::setValue(jUnsignedInteger value)
{
	m_Value = value;
	setPresenceVector(0);
	setParentPresenceVector();
	return 0;
}
开发者ID:davidhodo,项目名称:JAUSDiscoveryToolQT,代码行数:7,代码来源:GuiControlEntered.cpp

示例2: setPresenceVector

int ReportAccelerationState::Body::ReportAccelerationStateRec::setTimeStamp(const TimeStamp &value)
{
	m_TimeStamp = value;
	setPresenceVector(2);
	setParentPresenceVector();
	return 0;
}
开发者ID:davidhodo,项目名称:libJAUS,代码行数:7,代码来源:ReportAccelerationState.cpp

示例3: setPresenceVector

int BroadcastGlobal::Body::SendRec::setSrcNodeID(jUnsignedByte value)
{
	m_SrcNodeID = value;
	setPresenceVector(1);
	setParentPresenceVector();
	return 0;
}
开发者ID:lavernw,项目名称:jaustoolset,代码行数:7,代码来源:BroadcastGlobal.cpp

示例4: setPresenceVector

int BroadcastGlobal::Body::BroadcastRec::setSourceID(const SourceID &value)
{
	m_SourceID = value;
	setPresenceVector(0);
	setParentPresenceVector();
	return 0;
}
开发者ID:lavernw,项目名称:jaustoolset,代码行数:7,代码来源:BroadcastGlobal.cpp

示例5: setPresenceVector

int RejectEventRequest::Body::RejectEventRequestRec::setErrorMessage(jFixedLengthString value)
{
	m_ErrorMessage = value;
	setPresenceVector(1);
	setParentPresenceVector();
	return 0;
}
开发者ID:davidhodo,项目名称:libJAUS,代码行数:7,代码来源:RejectEventRequest.cpp

示例6: setPresenceVector

int SetLocalPose::Body::LocalPoseRec::setTimeStamp(const TimeStamp &value)
{
	m_TimeStamp = value;
	setPresenceVector(8);
	setParentPresenceVector();
	return 0;
}
开发者ID:davidhodo,项目名称:libJAUS,代码行数:7,代码来源:SetLocalPose.cpp

示例7: setPresenceVector

int ReportVisualSensorConfiguration::Body::VisualSensorConfigurationList::VisualSensorConfigurationRec::setLightSensitivity(jUnsignedByte value)
{
	if ((value == 0) || (value == 1) || (value == 2) || (value == 3) || (value == 4) || (value == 5) || (value == 6))
	{
		m_LightSensitivity = value;
		setPresenceVector(14);
		setParentPresenceVector();
		return 0;
	}
	return 1;
}
开发者ID:lavernw,项目名称:jaustoolset,代码行数:11,代码来源:ReportVisualSensorConfiguration.cpp

示例8: setPresenceVector

int ReportWrenchEffort::Body::WrenchEffortRec::setPropulsiveRotationalEffortZ(double value)
{
    if ((value >= -100) && (value <= 100))
    {
        double scaleFactor = ( 100 - -100 ) / 65535.0;
        double bias = -100;

        m_PropulsiveRotationalEffortZ= (jUnsignedShortInteger)((value - bias) / scaleFactor);
        setPresenceVector(5);
        setParentPresenceVector();
        return 0;
    }
    return 1;
}
开发者ID:nikola-v,项目名称:jaustoolset,代码行数:14,代码来源:ReportWrenchEffort.cpp

示例9: setPresenceVector

int ReportGlobalVector::Body::GlobalVectorRec::setPitch(double value)
{
	if ((value >= -3.14159265358979323846) && (value <= 3.14159265358979323846))
	{
		double scaleFactor = ( 3.14159265358979323846 - -3.14159265358979323846 ) / 65535.0;
		double bias = -3.14159265358979323846;
		
		m_Pitch= (jUnsignedShortInteger)((value - bias) / scaleFactor);
		setPresenceVector(3);
		setParentPresenceVector();
		return 0;
	}
	return 1;
}
开发者ID:davidhodo,项目名称:libJAUS,代码行数:14,代码来源:ReportGlobalVector.cpp

示例10: setPresenceVector

int ReportSimulatedPose::Body::LocalPoseRec::setAttitude_RMS(double value)
{
	if ((value >= 0) && (value <= 3.14159265358979323846))
	{
		double scaleFactor = ( 3.14159265358979323846 - 0 ) / 65535.0;
		double bias = 0;
		
		m_Attitude_RMS= (jUnsignedShortInteger)((value - bias) / scaleFactor);
		setPresenceVector(7);
		setParentPresenceVector();
		return 0;
	}
	return 1;
}
开发者ID:nikola-v,项目名称:jaustoolset,代码行数:14,代码来源:ReportSimulatedPose.cpp

示例11: setPresenceVector

int SetWrenchEffort::Body::WrenchEffortRec::setResistiveLinearEffortY(double value)
{
	if ((value >= 0) && (value <= 100))
	{
		double scaleFactor = ( 100 - 0 ) / 255.0;
		double bias = 0;
		
		m_ResistiveLinearEffortY= (jUnsignedByte)((value - bias) / scaleFactor);
		setPresenceVector(7);
		setParentPresenceVector();
		return 0;
	}
	return 1;
}
开发者ID:davidhodo,项目名称:libJAUS,代码行数:14,代码来源:SetWrenchEffort.cpp

示例12: setPresenceVector

int ReportLocalWaypoint::Body::LocalWaypointRec::setPathTolerance(double value)
{
	if ((value >= 0) && (value <= 100000))
	{
		double scaleFactor = ( 100000 - 0 ) / 4.294967295E9;
		double bias = 0;
		
		m_PathTolerance= (jUnsignedInteger)((value - bias) / scaleFactor);
		setPresenceVector(5);
		setParentPresenceVector();
		return 0;
	}
	return 1;
}
开发者ID:davidhodo,项目名称:libJAUS,代码行数:14,代码来源:ReportLocalWaypoint.cpp


注:本文中的setPresenceVector函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。