How to use the ice.Ice.Object function in ice

To help you get started, we’ve selected a few ice examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github JdeRobot / WebSim2D / websim / js / Ice / image.js View on Github external
var Slice = Ice.Slice;

    /**
     * Static description of the image source.
     **/
    jderobot.ImageDescription = Slice.defineObject(
        function(width, height, size, format, md5sum)
        {
            Ice.Object.call(this);
            this.width = width !== undefined ? width : 0;
            this.height = height !== undefined ? height : 0;
            this.size = size !== undefined ? size : 0;
            this.format = format !== undefined ? format : "";
            this.md5sum = md5sum !== undefined ? md5sum : "";
        },
        Ice.Object, undefined, 1,
        [
            "::Ice::Object",
            "::jderobot::ImageDescription"
        ],
        -1,
        function(__os)
        {
            __os.writeInt(this.width);
            __os.writeInt(this.height);
            __os.writeInt(this.size);
            __os.writeString(this.format);
            __os.writeString(this.md5sum);
        },
        function(__is)
        {
            this.width = __is.readInt();
github JdeRobot / WebSim2D / websim / js / Ice / camera.js View on Github external
this.shortDescription = shortDescription !== undefined ? shortDescription : "";
            this.streamingUri = streamingUri !== undefined ? streamingUri : "";
            this.fdistx = fdistx !== undefined ? fdistx : 0.0;
            this.fdisty = fdisty !== undefined ? fdisty : 0.0;
            this.u0 = u0 !== undefined ? u0 : 0.0;
            this.v0 = v0 !== undefined ? v0 : 0.0;
            this.skew = skew !== undefined ? skew : 0.0;
            this.posx = posx !== undefined ? posx : 0.0;
            this.posy = posy !== undefined ? posy : 0.0;
            this.posz = posz !== undefined ? posz : 0.0;
            this.foax = foax !== undefined ? foax : 0.0;
            this.foay = foay !== undefined ? foay : 0.0;
            this.foaz = foaz !== undefined ? foaz : 0.0;
            this.roll = roll !== undefined ? roll : 0.0;
        },
        Ice.Object, undefined, 1,
        [
            "::Ice::Object",
            "::jderobot::CameraDescription"
        ],
        -1,
        function(__os)
        {
            __os.writeString(this.name);
            __os.writeString(this.shortDescription);
            __os.writeString(this.streamingUri);
            __os.writeFloat(this.fdistx);
            __os.writeFloat(this.fdisty);
            __os.writeFloat(this.u0);
            __os.writeFloat(this.v0);
            __os.writeFloat(this.skew);
            __os.writeFloat(this.posx);
github JdeRobot / WebSim2D / websim / js / Ice / motors.js View on Github external
(function(module, require, exports)
{
    var Ice = require("ice").Ice;
    var __M = Ice.__M;
    var Slice = Ice.Slice;

    var jderobot = __M.module("jderobot");

    /**
     * Interface to the Gazebo Motors Actuators interaction.
     **/
    jderobot.Motors = Slice.defineObject(
        undefined,
        Ice.Object, undefined, 1,
        [
            "::Ice::Object",
            "::jderobot::Motors"
        ],
        -1, undefined, undefined, false);

    jderobot.MotorsPrx = Slice.defineProxy(Ice.ObjectPrx, jderobot.Motors.ice_staticId, undefined);

    Slice.defineOperations(jderobot.Motors, jderobot.MotorsPrx,
    {
        "getV": [, , , , , [5], , , , , ],
        "setV": [, , , , , [3], [[5]], , , , ],
        "getW": [, , , , , [5], , , , , ],
        "setW": [, , , , , [3], [[5]], , , , ],
        "getL": [, , , , , [5], , , , , ],
        "setL": [, , , , , [3], [[5]], , , , ]
github JdeRobot / WebSim2D / websim / js / Ice / camera.js View on Github external
function(name, shortDescription, streamingUri, fdistx, fdisty, u0, v0, skew, posx, posy, posz, foax, foay, foaz, roll)
        {
            Ice.Object.call(this);
            this.name = name !== undefined ? name : "";
            this.shortDescription = shortDescription !== undefined ? shortDescription : "";
            this.streamingUri = streamingUri !== undefined ? streamingUri : "";
            this.fdistx = fdistx !== undefined ? fdistx : 0.0;
            this.fdisty = fdisty !== undefined ? fdisty : 0.0;
            this.u0 = u0 !== undefined ? u0 : 0.0;
            this.v0 = v0 !== undefined ? v0 : 0.0;
            this.skew = skew !== undefined ? skew : 0.0;
            this.posx = posx !== undefined ? posx : 0.0;
            this.posy = posy !== undefined ? posy : 0.0;
            this.posz = posz !== undefined ? posz : 0.0;
            this.foax = foax !== undefined ? foax : 0.0;
            this.foay = foay !== undefined ? foay : 0.0;
            this.foaz = foaz !== undefined ? foaz : 0.0;
            this.roll = roll !== undefined ? roll : 0.0;
        },
github JdeRobot / WebSim2D / websim / js / Ice / image.js View on Github external
-1, undefined, undefined, false);

    jderobot.ImageConsumerPrx = Slice.defineProxy(Ice.ObjectPrx, jderobot.ImageConsumer.ice_staticId, undefined);

    Slice.defineOperations(jderobot.ImageConsumer, jderobot.ImageConsumerPrx,
    {
        "report": [, , , , , , [["jderobot.ImageData", true]], , , true, ]
    });
    Slice.defineSequence(jderobot, "ImageFormatHelper", "Ice.StringHelper", false);

    /**
     * Interface to the image provider.
     **/
    jderobot.ImageProvider = Slice.defineObject(
        undefined,
        Ice.Object, undefined, 1,
        [
            "::Ice::Object",
            "::jderobot::ImageProvider"
        ],
        -1, undefined, undefined, false);

    jderobot.ImageProviderPrx = Slice.defineProxy(Ice.ObjectPrx, jderobot.ImageProvider.ice_staticId, undefined);

    Slice.defineOperations(jderobot.ImageProvider, jderobot.ImageProviderPrx,
    {
        "getImageDescription": [, 2, 2, , , ["jderobot.ImageDescription", true], , , , , true],
        "getImageFormat": [, 2, 2, , , ["jderobot.ImageFormatHelper"], , , , , ],
        "getImageData": [, 2, 2, 1, , ["jderobot.ImageData", true], [[7]], , 
        [
            jderobot.DataNotExistException,
            jderobot.HardwareFailedException
github JdeRobot / WebSim2D / websim / js / Ice / motors.js View on Github external
jderobot.MotorsPrx = Slice.defineProxy(Ice.ObjectPrx, jderobot.Motors.ice_staticId, undefined);

    Slice.defineOperations(jderobot.Motors, jderobot.MotorsPrx,
    {
        "getV": [, , , , , [5], , , , , ],
        "setV": [, , , , , [3], [[5]], , , , ],
        "getW": [, , , , , [5], , , , , ],
        "setW": [, , , , , [3], [[5]], , , , ],
        "getL": [, , , , , [5], , , , , ],
        "setL": [, , , , , [3], [[5]], , , , ]
    });

    jderobot.SetterMotors = Slice.defineObject(
        undefined,
        Ice.Object, undefined, 1,
        [
            "::Ice::Object",
            "::jderobot::SetterMotors"
        ],
        -1, undefined, undefined, false);

    jderobot.SetterMotorsPrx = Slice.defineProxy(Ice.ObjectPrx, jderobot.SetterMotors.ice_staticId, undefined);

    Slice.defineOperations(jderobot.SetterMotors, jderobot.SetterMotorsPrx,
    {
        "setMotors": [, , , , , [3], [["jderobot.MotorsPrx"]], , , , ]
    });
    exports.jderobot = jderobot;
}
(typeof(global) !== "undefined" && typeof(global.process) !== "undefined" ? module : undefined,