本文整理汇总了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;
}
示例2: setPresenceVector
int ReportAccelerationState::Body::ReportAccelerationStateRec::setTimeStamp(const TimeStamp &value)
{
m_TimeStamp = value;
setPresenceVector(2);
setParentPresenceVector();
return 0;
}
示例3: setPresenceVector
int BroadcastGlobal::Body::SendRec::setSrcNodeID(jUnsignedByte value)
{
m_SrcNodeID = value;
setPresenceVector(1);
setParentPresenceVector();
return 0;
}
示例4: setPresenceVector
int BroadcastGlobal::Body::BroadcastRec::setSourceID(const SourceID &value)
{
m_SourceID = value;
setPresenceVector(0);
setParentPresenceVector();
return 0;
}
示例5: setPresenceVector
int RejectEventRequest::Body::RejectEventRequestRec::setErrorMessage(jFixedLengthString value)
{
m_ErrorMessage = value;
setPresenceVector(1);
setParentPresenceVector();
return 0;
}
示例6: setPresenceVector
int SetLocalPose::Body::LocalPoseRec::setTimeStamp(const TimeStamp &value)
{
m_TimeStamp = value;
setPresenceVector(8);
setParentPresenceVector();
return 0;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}