How to use the ice.Ice.__M 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 / datetime.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");

    jderobot.Time = Slice.defineStruct(
        function(seconds, useconds)
        {
            this.seconds = seconds !== undefined ? seconds : new Ice.Long(0, 0);
            this.useconds = useconds !== undefined ? useconds : new Ice.Long(0, 0);
        },
        true,
        function(__os)
        {
            __os.writeLong(this.seconds);
            __os.writeLong(this.useconds);
        },
github JdeRobot / WebSim2D / websim / js / Ice / camera.js View on Github external
(function(module, require, exports)
{
    var Ice = require("ice").Ice;
    var __M = Ice.__M;
    var jderobot = require("jderobot/image").jderobot;
    var Slice = Ice.Slice;

    /**
     * Static description of a camera
     **/
    jderobot.CameraDescription = Slice.defineObject(
        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;
github JdeRobot / WebSim2D / websim / js / Ice / image.js View on Github external
(function(module, require, exports)
{
    var Ice = require("ice").Ice;
    var __M = Ice.__M;
    var jderobot = require("jderobot/common").jderobot;
    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 : "";
        },
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);
github JdeRobot / WebSim2D / websim / js / Ice / common.js View on Github external
(function(module, require, exports)
{
    var Ice = require("ice").Ice;
    var __M = Ice.__M;
    var jderobot = __M.require(module, 
    [
        "jderobot/datetime",
        "jderobot/exceptions",
        "jderobot/containers"
    ]).jderobot;
    
    var Slice = Ice.Slice;
    exports.jderobot = jderobot;
}
(typeof(global) !== "undefined" && typeof(global.process) !== "undefined" ? module : undefined,
github JdeRobot / WebSim2D / websim / js / Ice / containers.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");
    Slice.defineSequence(jderobot, "ByteSeqHelper", "Ice.ByteHelper", true);
    Slice.defineSequence(jderobot, "IntSeqHelper", "Ice.IntHelper", true);
    Slice.defineSequence(jderobot, "seqFloatHelper", "Ice.FloatHelper", true);
    exports.jderobot = jderobot;
}
(typeof(global) !== "undefined" && typeof(global.process) !== "undefined" ? module : undefined,
github JdeRobot / WebSim2D / websim / js / Ice / exceptions.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");

    jderobot.JderobotException = Slice.defineUserException(
        function(what, _cause)
        {
            Ice.UserException.call(this, _cause);
            this.what = what !== undefined ? what : "";
        },
        Ice.UserException,
        "jderobot::JderobotException",
        function(__os)
        {
            __os.writeString(this.what);
        },