コード例 #1
0
int GuiControlEntered::GuiControlEnteredBody::GuiControlEnteredRecord::setValue(jUnsignedInteger value)
{
	m_Value = value;
	setPresenceVector(0);
	setParentPresenceVector();
	return 0;
}
コード例 #2
0
int ReportAccelerationState::Body::ReportAccelerationStateRec::setTimeStamp(const TimeStamp &value)
{
	m_TimeStamp = value;
	setPresenceVector(2);
	setParentPresenceVector();
	return 0;
}
コード例 #3
0
int BroadcastGlobal::Body::SendRec::setSrcNodeID(jUnsignedByte value)
{
	m_SrcNodeID = value;
	setPresenceVector(1);
	setParentPresenceVector();
	return 0;
}
コード例 #4
0
int BroadcastGlobal::Body::BroadcastRec::setSourceID(const SourceID &value)
{
	m_SourceID = value;
	setPresenceVector(0);
	setParentPresenceVector();
	return 0;
}
コード例 #5
0
int BroadcastGlobal::Body::SendRec::setSrcSubsystemID(jUnsignedShortInteger value)
{
	m_SrcSubsystemID = value;
	setPresenceVector(0);
	setParentPresenceVector();
	return 0;
}
コード例 #6
0
int RejectEventRequest::Body::RejectEventRequestRec::setErrorMessage(jFixedLengthString value)
{
	m_ErrorMessage = value;
	setPresenceVector(1);
	setParentPresenceVector();
	return 0;
}
コード例 #7
0
ファイル: SetLocalPose.cpp プロジェクト: davidhodo/libJAUS
int SetLocalPose::Body::LocalPoseRec::setTimeStamp(const TimeStamp &value)
{
	m_TimeStamp = value;
	setPresenceVector(8);
	setParentPresenceVector();
	return 0;
}
コード例 #8
0
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;
}
コード例 #9
0
int ReportVisualSensorConfiguration::Body::VisualSensorConfigurationList::VisualSensorConfigurationRec::setMeteringMode(jUnsignedByte value)
{
	if ((value == 0) || (value == 1) || (value == 2))
	{
		m_MeteringMode = value;
		setPresenceVector(11);
		setParentPresenceVector();
		return 0;
	}
	return 1;
}
コード例 #10
0
int ReportVisualSensorConfiguration::Body::VisualSensorConfigurationList::VisualSensorConfigurationRec::setImageStablization(jUnsignedByte value)
{
	if ((value == 0) || (value == 1))
	{
		m_ImageStablization = value;
		setPresenceVector(15);
		setParentPresenceVector();
		return 0;
	}
	return 1;
}
コード例 #11
0
int BroadcastGlobal::Body::SendRec::setPriority(jUnsignedByte value)
{
	if (((value >= 0) && (value <= 3)) || (value == 0) || (value == 1) || (value == 2) || (value == 3))
	{
		m_Priority = value;
		setPresenceVector(2);
		setParentPresenceVector();
		return 0;
	}
	return 1;
}
コード例 #12
0
int RejectEventRequest::Body::RejectEventRequestRec::setResponseCode(jUnsignedByte value)
{
	if ((value == 1) || (value == 2) || (value == 3) || (value == 4) || (value == 5) || (value == 6))
	{
		m_ResponseCode = value;
		setPresenceVector(0);
		setParentPresenceVector();
		return 0;
	}
	return 1;
}
コード例 #13
0
int ReportVisualSensorConfiguration::Body::VisualSensorConfigurationList::VisualSensorConfigurationRec::setWhiteBalance(jUnsignedByte value)
{
	if ((value == 0) || (value == 1) || (value == 2) || (value == 3) || (value == 4) || (value == 5) || (value == 6))
	{
		m_WhiteBalance = value;
		setPresenceVector(8);
		setParentPresenceVector();
		return 0;
	}
	return 1;
}
コード例 #14
0
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;
}
コード例 #15
0
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;
}
コード例 #16
0
int ReportGlobalVector::Body::GlobalVectorRec::setAltitude(double value)
{
	if ((value >= -10000) && (value <= 35000))
	{
		double scaleFactor = ( 35000 - -10000 ) / 4.294967295E9;
		double bias = -10000;
		
		m_Altitude= (jUnsignedInteger)((value - bias) / scaleFactor);
		setPresenceVector(0);
		setParentPresenceVector();
		return 0;
	}
	return 1;
}
コード例 #17
0
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;
}
コード例 #18
0
int ReportSimulatedPose::Body::LocalPoseRec::setYaw(double value)
{
	if ((value >= -3.14159265358979323846) && (value <= 3.14159265358979323846))
	{
		double scaleFactor = ( 3.14159265358979323846 - -3.14159265358979323846 ) / 65535.0;
		double bias = -3.14159265358979323846;
		
		m_Yaw= (jUnsignedShortInteger)((value - bias) / scaleFactor);
		setPresenceVector(6);
		setParentPresenceVector();
		return 0;
	}
	return 1;
}
コード例 #19
0
int ReportSimulatedPose::Body::LocalPoseRec::setPosition_RMS(double value)
{
	if ((value >= 0) && (value <= 100))
	{
		double scaleFactor = ( 100 - 0 ) / 4.294967295E9;
		double bias = 0;
		
		m_Position_RMS= (jUnsignedInteger)((value - bias) / scaleFactor);
		setPresenceVector(3);
		setParentPresenceVector();
		return 0;
	}
	return 1;
}
コード例 #20
0
int ReportVisualSensorConfiguration::Body::VisualSensorConfigurationList::VisualSensorConfigurationRec::setShutterSpeed(double value)
{
	if ((value >= 0.0) && (value <= 60.0))
	{
		double scaleFactor = ( 60.0 - 0.0 ) / 65535.0;
		double bias = 0.0;
		
		m_ShutterSpeed= (jUnsignedShortInteger)((value - bias) / scaleFactor);
		setPresenceVector(12);
		setParentPresenceVector();
		return 0;
	}
	return 1;
}
コード例 #21
0
int ReportVisualSensorConfiguration::Body::VisualSensorConfigurationList::VisualSensorConfigurationRec::setAperture(double value)
{
	if ((value >= 0.1) && (value <= 128.0))
	{
		double scaleFactor = ( 128.0 - 0.1 ) / 65535.0;
		double bias = 0.1;
		
		m_Aperture= (jUnsignedShortInteger)((value - bias) / scaleFactor);
		setPresenceVector(13);
		setParentPresenceVector();
		return 0;
	}
	return 1;
}
コード例 #22
0
int ReportWrenchEffort::Body::WrenchEffortRec::setResistiveRotationalEffortZ(double value)
{
    if ((value >= 0) && (value <= 100))
    {
        double scaleFactor = ( 100 - 0 ) / 255.0;
        double bias = 0;

        m_ResistiveRotationalEffortZ= (jUnsignedByte)((value - bias) / scaleFactor);
        setPresenceVector(11);
        setParentPresenceVector();
        return 0;
    }
    return 1;
}
コード例 #23
0
int ReportAccelerationState::Body::ReportAccelerationStateRec::setRotationalAcceleration_RMS(double value)
{
	if ((value >= 0) && (value <= 3.14159265358979323846))
	{
		double scaleFactor = ( 3.14159265358979323846 - 0 ) / 65535.0;
		double bias = 0;
		
		m_RotationalAcceleration_RMS= (jUnsignedShortInteger)((value - bias) / scaleFactor);
		setPresenceVector(1);
		setParentPresenceVector();
		return 0;
	}
	return 1;
}
コード例 #24
0
int ReportAccelerationState::Body::ReportAccelerationStateRec::setAcceleration_RMS(double value)
{
	if ((value >= 0) && (value <= 100))
	{
		double scaleFactor = ( 100 - 0 ) / 4.294967295E9;
		double bias = 0;
		
		m_Acceleration_RMS= (jUnsignedInteger)((value - bias) / scaleFactor);
		setPresenceVector(0);
		setParentPresenceVector();
		return 0;
	}
	return 1;
}
コード例 #25
0
int ReportVisualSensorConfiguration::Body::VisualSensorConfigurationList::VisualSensorConfigurationRec::setVerticalFieldOfView(double value)
{
	if ((value >= -3.141592653589793) && (value <= 3.141592653589793))
	{
		double scaleFactor = ( 3.141592653589793 - -3.141592653589793 ) / 4.294967295E9;
		double bias = -3.141592653589793;
		
		m_VerticalFieldOfView= (jUnsignedInteger)((value - bias) / scaleFactor);
		setPresenceVector(5);
		setParentPresenceVector();
		return 0;
	}
	return 1;
}
コード例 #26
0
ファイル: SetLocalPose.cpp プロジェクト: davidhodo/libJAUS
int SetLocalPose::Body::LocalPoseRec::setZ(double value)
{
	if ((value >= -100000) && (value <= 100000))
	{
		double scaleFactor = ( 100000 - -100000 ) / 4.294967295E9;
		double bias = -100000;
		
		m_Z= (jUnsignedInteger)((value - bias) / scaleFactor);
		setPresenceVector(2);
		setParentPresenceVector();
		return 0;
	}
	return 1;
}
コード例 #27
0
int ReportVisualSensorConfiguration::Body::VisualSensorConfigurationList::VisualSensorConfigurationRec::setFocalLength(double value)
{
	if ((value >= 0.0) && (value <= 2.0))
	{
		double scaleFactor = ( 2.0 - 0.0 ) / 4.294967295E9;
		double bias = 0.0;
		
		m_FocalLength= (jUnsignedInteger)((value - bias) / scaleFactor);
		setPresenceVector(3);
		setParentPresenceVector();
		return 0;
	}
	return 1;
}
コード例 #28
0
int ReportVisualSensorConfiguration::Body::VisualSensorConfigurationList::VisualSensorConfigurationRec::setFocusValue(double value)
{
	if ((value >= 0.0) && (value <= 100.0))
	{
		double scaleFactor = ( 100.0 - 0.0 ) / 65535.0;
		double bias = 0.0;
		
		m_FocusValue= (jUnsignedShortInteger)((value - bias) / scaleFactor);
		setPresenceVector(7);
		setParentPresenceVector();
		return 0;
	}
	return 1;
}
コード例 #29
0
ファイル: SetWrenchEffort.cpp プロジェクト: davidhodo/libJAUS
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;
}
コード例 #30
0
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;
}