コード例 #1
0
ファイル: GetFKSolution.cs プロジェクト: Xamla/graph_system
            public override bool Equals(RosMessage ____other)
            {
                if (____other == null)
                {
                    return(false);
                }

                bool ret = true;

                xamlamoveit_msgs.GetFKSolution.Request other = (Messages.xamlamoveit_msgs.GetFKSolution.Request)____other;

                ret &= group_name == other.group_name;
                ret &= end_effector_link == other.end_effector_link;
                if (joint_names.Length != other.joint_names.Length)
                {
                    return(false);
                }
                for (int __i__ = 0; __i__ < joint_names.Length; __i__++)
                {
                    ret &= joint_names[__i__] == other.joint_names[__i__];
                }
                if (points.Length != other.points.Length)
                {
                    return(false);
                }
                for (int __i__ = 0; __i__ < points.Length; __i__++)
                {
                    ret &= points[__i__].Equals(other.points[__i__]);
                }
                return(ret);
            }
コード例 #2
0
        public override bool Equals(RosMessage ____other)
        {
            if (____other == null)
            {
                return(false);
            }
            bool ret   = true;
            var  other = ____other as Messages.motoman_msgs.DynamicJointPoint;

            if (other == null)
            {
                return(false);
            }
            ret &= num_groups == other.num_groups;
            if (groups.Length != other.groups.Length)
            {
                return(false);
            }
            for (int __i__ = 0; __i__ < groups.Length; __i__++)
            {
                ret &= groups[__i__].Equals(other.groups[__i__]);
            }
            // for each SingleType st:
            //    ret &= {st.Name} == other.{st.Name};
            return(ret);
        }
コード例 #3
0
        public override bool Equals(RosMessage ____other)
        {
            if (____other == null)
            {
                return(false);
            }
            bool ret   = true;
            var  other = ____other as Messages.rosgardener.ChannelCommand;

            if (other == null)
            {
                return(false);
            }
            ret &= command == other.command;
            ret &= channel_name == other.channel_name;
            if (arguments.Length != other.arguments.Length)
            {
                return(false);
            }
            for (int __i__ = 0; __i__ < arguments.Length; __i__++)
            {
                ret &= arguments[__i__] == other.arguments[__i__];
            }
            // for each SingleType st:
            //    ret &= {st.Name} == other.{st.Name};
            return(ret);
        }
コード例 #4
0
            public override bool Equals(RosMessage ____other)
            {
                if (____other == null)
					return false;

                bool ret = true;
                xamlamoveit_msgs.GetMoveItJointPath.Response other = (Messages.xamlamoveit_msgs.GetMoveItJointPath.Response)____other;

                if (path.Length != other.path.Length)
                    return false;
                for (int __i__=0; __i__ < path.Length; __i__++)
                {
                    ret &= path[__i__].Equals(other.path[__i__]);
                }
                if (joint_names.Length != other.joint_names.Length)
                    return false;
                for (int __i__=0; __i__ < joint_names.Length; __i__++)
                {
                    ret &= joint_names[__i__] == other.joint_names[__i__];
                }
                ret &= error_code.Equals(other.error_code);
                // for each SingleType st:
                //    ret &= {st.Name} == other.{st.Name};
                return ret;
            }
コード例 #5
0
            public override bool Equals(RosMessage ____other)
            {
                if (____other == null)
                {
                    return(false);
                }

                bool ret = true;

                xamlamoveit_msgs.GetIKSolution2.Request other = (Messages.xamlamoveit_msgs.GetIKSolution2.Request)____other;

                ret &= group_name == other.group_name;
                if (joint_names.Length != other.joint_names.Length)
                {
                    return(false);
                }
                for (int __i__ = 0; __i__ < joint_names.Length; __i__++)
                {
                    ret &= joint_names[__i__] == other.joint_names[__i__];
                }
                ret &= seed.Equals(other.seed);
                ret &= const_seed == other.const_seed;
                if (points.Length != other.points.Length)
                {
                    return(false);
                }
                for (int __i__ = 0; __i__ < points.Length; __i__++)
                {
                    ret &= points[__i__].Equals(other.points[__i__]);
                }
                ret &= collision_check == other.collision_check;
                ret &= attempts == other.attempts;
                ret &= timeout.data.Equals(other.timeout.data);
                return(ret);
            }
コード例 #6
0
ファイル: Trigger.cs プロジェクト: Xamla/graph_system
            public override bool Equals(RosMessage ____other)
            {
                if (____other == null)
                {
                    return(false);
                }

                bool ret = true;

                ximea_msgs.Trigger.Response other = (Messages.ximea_msgs.Trigger.Response)____other;

                ret &= serial == other.serial;
                ret &= totalFrameCount == other.totalFrameCount;
                if (images.Length != other.images.Length)
                {
                    return(false);
                }
                for (int __i__ = 0; __i__ < images.Length; __i__++)
                {
                    ret &= images[__i__].Equals(other.images[__i__]);
                }
                // for each SingleType st:
                //    ret &= {st.Name} == other.{st.Name};
                return(ret);
            }
コード例 #7
0
ファイル: MovCtrlData.cs プロジェクト: Xamla/graph_system
        public override bool Equals(RosMessage ____other)
        {
            if (____other == null)
            {
                return(false);
            }
            bool ret   = true;
            var  other = ____other as Messages.motoman_msgs.MovCtrlData;

            if (other == null)
            {
                return(false);
            }
            ret &= intp_type == other.intp_type;
            ret &= intp_kind == other.intp_kind;
            ret &= speed_type == other.speed_type;
            ret &= speed_value == other.speed_value;
            if (posData.Length != other.posData.Length)
            {
                return(false);
            }
            for (int __i__ = 0; __i__ < posData.Length; __i__++)
            {
                ret &= posData[__i__].Equals(other.posData[__i__]);
            }
            // for each SingleType st:
            //    ret &= {st.Name} == other.{st.Name};
            return(ret);
        }
コード例 #8
0
ファイル: ListJobs.cs プロジェクト: Xamla/graph_system
            public override bool Equals(RosMessage ____other)
            {
                if (____other == null)
                {
                    return(false);
                }

                bool ret = true;

                motoman_msgs.ListJobs.Response other = (Messages.motoman_msgs.ListJobs.Response)____other;

                ret &= success == other.success;
                ret &= message == other.message;
                if (available_jobs.Length != other.available_jobs.Length)
                {
                    return(false);
                }
                for (int __i__ = 0; __i__ < available_jobs.Length; __i__++)
                {
                    ret &= available_jobs[__i__] == other.available_jobs[__i__];
                }
                // for each SingleType st:
                //    ret &= {st.Name} == other.{st.Name};
                return(ret);
            }
コード例 #9
0
        public override bool Equals(RosMessage message)
        {
            if (message == null)
            {
                return(false);
            }
            bool ret = true;
            StepwiseMoveJGoal other;

            try
            {
                other = (StepwiseMoveJGoal)message;
            }
            catch
            {
                return(false);
            }


            ret &= trajectory.Equals(other.trajectory);
            ret &= check_collision == other.check_collision;
            ret &= veloctiy_scaling == other.veloctiy_scaling;

            return(ret);
        }
コード例 #10
0
        public override bool Equals(RosMessage message)
        {
            if (message == null)
            {
                return(false);
            }
            bool           ret = true;
            StartJobResult other;

            try
            {
                other = (StartJobResult)message;
            }
            catch
            {
                return(false);
            }


            ret &= success == other.success;
            ret &= status_message == other.status_message;
            ret &= err_no == other.err_no;

            return(ret);
        }
コード例 #11
0
        public override bool Equals(RosMessage message)
        {
            if (message == null)
            {
                return(false);
            }
            bool             ret = true;
            StartJobFeedback other;

            try
            {
                other = (StartJobFeedback)message;
            }
            catch
            {
                return(false);
            }


            ret &= status_message == other.status_message;
            ret &= job_line == other.job_line;
            ret &= step == other.step;
            ret &= job_name == other.job_name;

            return(ret);
        }
コード例 #12
0
            public override bool Equals(RosMessage ____other)
            {
                if (____other == null)
                {
                    return(false);
                }

                bool ret = true;

                xamlamoveit_msgs.QueryJointStateCollisions.Request other = (Messages.xamlamoveit_msgs.QueryJointStateCollisions.Request)____other;

                ret &= move_group_name == other.move_group_name;
                if (joint_names.Length != other.joint_names.Length)
                {
                    return(false);
                }
                for (int __i__ = 0; __i__ < joint_names.Length; __i__++)
                {
                    ret &= joint_names[__i__] == other.joint_names[__i__];
                }
                if (points.Length != other.points.Length)
                {
                    return(false);
                }
                for (int __i__ = 0; __i__ < points.Length; __i__++)
                {
                    ret &= points[__i__].Equals(other.points[__i__]);
                }
                return(ret);
            }
コード例 #13
0
ファイル: QueryLock.cs プロジェクト: Xamla/graph_system
            public override bool Equals(RosMessage ____other)
            {
                if (____other == null)
                {
                    return(false);
                }

                bool ret = true;

                xamlamoveit_msgs.QueryLock.Response other = (Messages.xamlamoveit_msgs.QueryLock.Response)____other;

                ret &= success == other.success;
                if (id_resources.Length != other.id_resources.Length)
                {
                    return(false);
                }
                for (int __i__ = 0; __i__ < id_resources.Length; __i__++)
                {
                    ret &= id_resources[__i__] == other.id_resources[__i__];
                }
                ret &= id_lock == other.id_lock;
                ret &= creation_date.data.Equals(other.creation_date.data);
                ret &= expiration_date.data.Equals(other.expiration_date.data);
                ret &= error_msg == other.error_msg;
                // for each SingleType st:
                //    ret &= {st.Name} == other.{st.Name};
                return(ret);
            }
コード例 #14
0
ファイル: SkillRead.cs プロジェクト: Xamla/graph_system
            public override bool Equals(RosMessage ____other)
            {
                if (____other == null)
                {
                    return(false);
                }

                bool ret = true;

                motoman_msgs.SkillRead.Response other = (Messages.motoman_msgs.SkillRead.Response)____other;

                ret &= success == other.success;
                ret &= message == other.message;
                if (cmd.Length != other.cmd.Length)
                {
                    return(false);
                }
                for (int __i__ = 0; __i__ < cmd.Length; __i__++)
                {
                    ret &= cmd[__i__] == other.cmd[__i__];
                }
                if (skill_pending.Length != other.skill_pending.Length)
                {
                    return(false);
                }
                for (int __i__ = 0; __i__ < skill_pending.Length; __i__++)
                {
                    ret &= skill_pending[__i__] == other.skill_pending[__i__];
                }
                // for each SingleType st:
                //    ret &= {st.Name} == other.{st.Name};
                return(ret);
            }
コード例 #15
0
            public override bool Equals(RosMessage ____other)
            {
                if (____other == null)
                {
                    return(false);
                }

                bool ret = true;

                xamlamoveit_msgs.GetCartesianPath.Request other = (Messages.xamlamoveit_msgs.GetCartesianPath.Request)____other;

                ret &= group_name == other.group_name;
                ret &= end_effector_link == other.end_effector_link;
                if (joint_names.Length != other.joint_names.Length)
                {
                    return(false);
                }
                for (int __i__ = 0; __i__ < joint_names.Length; __i__++)
                {
                    ret &= joint_names[__i__] == other.joint_names[__i__];
                }
                ret &= seed.Equals(other.seed);
                if (waypoints.Length != other.waypoints.Length)
                {
                    return(false);
                }
                for (int __i__ = 0; __i__ < waypoints.Length; __i__++)
                {
                    ret &= waypoints[__i__].Equals(other.waypoints[__i__]);
                }
                ret &= max_deviation == other.max_deviation;
                ret &= num_steps == other.num_steps;
                ret &= collision_check == other.collision_check;
                return(ret);
            }
コード例 #16
0
ファイル: JobPosData.cs プロジェクト: Xamla/graph_system
        public override bool Equals(RosMessage ____other)
        {
            if (____other == null)
            {
                return(false);
            }
            bool ret   = true;
            var  other = ____other as Messages.motoman_msgs.JobPosData;

            if (other == null)
            {
                return(false);
            }
            ret &= ctrl_grp == other.ctrl_grp;
            ret &= pos_type == other.pos_type;
            ret &= var_index == other.var_index;
            ret &= attr == other.attr;
            ret &= attr_ext == other.attr_ext;
            if (pos.Length != other.pos.Length)
            {
                return(false);
            }
            for (int __i__ = 0; __i__ < pos.Length; __i__++)
            {
                ret &= pos[__i__] == other.pos[__i__];
            }
            // for each SingleType st:
            //    ret &= {st.Name} == other.{st.Name};
            return(ret);
        }
コード例 #17
0
        public override bool Equals(RosMessage ____other)
        {
            if (____other == null)
            {
                return(false);
            }
            bool ret   = true;
            var  other = ____other as Messages.motoman_msgs.DynamicJointTrajectoryFeedback;

            if (other == null)
            {
                return(false);
            }
            ret &= header.Equals(other.header);
            ret &= num_groups == other.num_groups;
            if (joint_feedbacks.Length != other.joint_feedbacks.Length)
            {
                return(false);
            }
            for (int __i__ = 0; __i__ < joint_feedbacks.Length; __i__++)
            {
                ret &= joint_feedbacks[__i__].Equals(other.joint_feedbacks[__i__]);
            }
            // for each SingleType st:
            //    ret &= {st.Name} == other.{st.Name};
            return(ret);
        }
コード例 #18
0
ファイル: GoalStatusArray.cs プロジェクト: k-aguete/ROS.NET
        public override bool Equals(RosMessage ____other)
        {
            if (____other == null)
            {
                return(false);
            }
            bool ret   = true;
            var  other = ____other as Messages.actionlib_msgs.GoalStatusArray;

            if (other == null)
            {
                return(false);
            }
            ret &= header.Equals(other.header);
            if (status_list.Length != other.status_list.Length)
            {
                return(false);
            }
            for (int __i__ = 0; __i__ < status_list.Length; __i__++)
            {
                ret &= status_list[__i__].Equals(other.status_list[__i__]);
            }
            // for each SingleType st:
            //    ret &= {st.Name} == other.{st.Name};
            return(ret);
        }
コード例 #19
0
            public override bool Equals(RosMessage ____other)
            {
                if (____other == null)
                {
                    return(false);
                }

                bool ret = true;

                xamlamoveit_msgs.StatusController.Response other = (Messages.xamlamoveit_msgs.StatusController.Response)____other;

                ret &= is_running == other.is_running;
                ret &= in_topic == other.in_topic;
                ret &= out_topic == other.out_topic;
                ret &= move_group_name == other.move_group_name;
                if (joint_names.Length != other.joint_names.Length)
                {
                    return(false);
                }
                for (int __i__ = 0; __i__ < joint_names.Length; __i__++)
                {
                    ret &= joint_names[__i__] == other.joint_names[__i__];
                }
                ret &= status_message_tracking == other.status_message_tracking;
                // for each SingleType st:
                //    ret &= {st.Name} == other.{st.Name};
                return(ret);
            }
コード例 #20
0
ファイル: MessageCommand.cs プロジェクト: Xamla/graph_system
        public override bool Equals(RosMessage ____other)
        {
            if (____other == null)
            {
                return(false);
            }
            bool ret   = true;
            var  other = ____other as Messages.rosgardener.MessageCommand;

            if (other == null)
            {
                return(false);
            }
            ret &= header.Equals(other.header);
            ret &= message_id == other.message_id;
            ret &= message_body == other.message_body;
            if (attachments.Length != other.attachments.Length)
            {
                return(false);
            }
            for (int __i__ = 0; __i__ < attachments.Length; __i__++)
            {
                ret &= attachments[__i__].Equals(other.attachments[__i__]);
            }
            // for each SingleType st:
            //    ret &= {st.Name} == other.{st.Name};
            return(ret);
        }
コード例 #21
0
        public override bool Equals(RosMessage ____other)
        {
            if (____other == null)
            {
                return(false);
            }
            bool ret   = true;
            var  other = ____other as Messages.rosgraph_msgs.Log;

            if (other == null)
            {
                return(false);
            }
            ret &= header.Equals(other.header);
            ret &= level == other.level;
            ret &= name == other.name;
            ret &= msg == other.msg;
            ret &= file == other.file;
            ret &= function == other.function;
            ret &= line == other.line;
            if (topics.Length != other.topics.Length)
            {
                return(false);
            }
            for (int __i__ = 0; __i__ < topics.Length; __i__++)
            {
                ret &= topics[__i__] == other.topics[__i__];
            }
            // for each SingleType st:
            //    ret &= {st.Name} == other.{st.Name};
            return(ret);
        }
コード例 #22
0
    // die andere Richtung wäre auch schön, damit man auch Nachrichten an ROS senden kann
    public string SerializeROSmessage(RosMessage message)
    {
        //todo

        if (message.GetType() == typeof(RosPublish))
        {
            rosComplexCoder coder = null;
            switch (message.topic)
            {
            case "\"/joint_states\"":
                coder = new RosJointStateCoder_();
                return(coder.startSerializing(message));

            case "\"/preview_trajectory\"":
                coder = new RosJointTrajectoryCoder_();
                return(coder.startSerializing(message));

            default:
                return(null);
            }
        }
        else
        {
            return(null);
        }
    }
コード例 #23
0
            public override bool Equals(RosMessage ____other)
            {
                if (____other == null)
                {
                    return(false);
                }

                bool ret = true;

                camera_aravis.Capture.Response other = (Messages.camera_aravis.Capture.Response)____other;

                if (serials.Length != other.serials.Length)
                {
                    return(false);
                }
                for (int __i__ = 0; __i__ < serials.Length; __i__++)
                {
                    ret &= serials[__i__] == other.serials[__i__];
                }
                if (images.Length != other.images.Length)
                {
                    return(false);
                }
                for (int __i__ = 0; __i__ < images.Length; __i__++)
                {
                    ret &= images[__i__].Equals(other.images[__i__]);
                }
                // for each SingleType st:
                //    ret &= {st.Name} == other.{st.Name};
                return(ret);
            }
コード例 #24
0
        public override bool Equals(RosMessage ____other)
        {
            if (____other == null)
            {
                return(false);
            }
            bool ret   = true;
            var  other = ____other as Messages.xamlamoveit_msgs.CartesianPath;

            if (other == null)
            {
                return(false);
            }
            if (points.Length != other.points.Length)
            {
                return(false);
            }
            for (int __i__ = 0; __i__ < points.Length; __i__++)
            {
                ret &= points[__i__].Equals(other.points[__i__]);
            }
            // for each SingleType st:
            //    ret &= {st.Name} == other.{st.Name};
            return(ret);
        }
コード例 #25
0
            public override bool Equals(RosMessage ____other)
            {
                if (____other == null)
                {
                    return(false);
                }

                bool ret = true;

                xamlamoveit_msgs.GetIKSolution2.Response other = (Messages.xamlamoveit_msgs.GetIKSolution2.Response)____other;

                if (solutions.Length != other.solutions.Length)
                {
                    return(false);
                }
                for (int __i__ = 0; __i__ < solutions.Length; __i__++)
                {
                    ret &= solutions[__i__].Equals(other.solutions[__i__]);
                }
                if (error_codes.Length != other.error_codes.Length)
                {
                    return(false);
                }
                for (int __i__ = 0; __i__ < error_codes.Length; __i__++)
                {
                    ret &= error_codes[__i__].Equals(other.error_codes[__i__]);
                }
                // for each SingleType st:
                //    ret &= {st.Name} == other.{st.Name};
                return(ret);
            }
コード例 #26
0
ファイル: GetUserVars.cs プロジェクト: Xamla/graph_system
            public override bool Equals(RosMessage ____other)
            {
                if (____other == null)
                {
                    return(false);
                }

                bool ret = true;

                motoman_msgs.GetUserVars.Response other = (Messages.motoman_msgs.GetUserVars.Response)____other;

                ret &= success == other.success;
                ret &= message == other.message;
                ret &= err_no == other.err_no;
                if (variables.Length != other.variables.Length)
                {
                    return(false);
                }
                for (int __i__ = 0; __i__ < variables.Length; __i__++)
                {
                    ret &= variables[__i__].Equals(other.variables[__i__]);
                }
                // for each SingleType st:
                //    ret &= {st.Name} == other.{st.Name};
                return(ret);
            }
コード例 #27
0
ファイル: JobStatus.cs プロジェクト: Xamla/graph_system
        public override bool Equals(RosMessage ____other)
        {
            if (____other == null)
            {
                return(false);
            }
            bool ret   = true;
            var  other = ____other as Messages.motoman_msgs.JobStatus;

            if (other == null)
            {
                return(false);
            }
            ret &= success == other.success;
            ret &= message == other.message;
            ret &= err_no == other.err_no;
            ret &= job_line == other.job_line;
            ret &= step == other.step;
            ret &= job_name == other.job_name;
            ret &= task_no == other.task_no;
            ret &= master_job_name == other.master_job_name;
            // for each SingleType st:
            //    ret &= {st.Name} == other.{st.Name};
            return(ret);
        }
コード例 #28
0
        public override bool Equals(RosMessage ____other)
        {
            if (____other == null)
            {
                return(false);
            }
            bool ret   = true;
            var  other = ____other as Messages.wsg_50.Status;

            if (other == null)
            {
                return(false);
            }
            ret &= grasping_state_id == other.grasping_state_id;
            ret &= grasping_state == other.grasping_state;
            ret &= return_code == other.return_code;
            ret &= connection_state == other.connection_state;
            ret &= width == other.width;
            ret &= current_speed == other.current_speed;
            ret &= current_force == other.current_force;
            ret &= grasping_force == other.grasping_force;
            ret &= acceleration == other.acceleration;
            // for each SingleType st:
            //    ret &= {st.Name} == other.{st.Name};
            return(ret);
        }
コード例 #29
0
        public override bool Equals(RosMessage ____other)
        {
            if (____other == null)
            {
                return(false);
            }
            bool ret   = true;
            var  other = ____other as Messages.xamlamoveit_msgs.EndEffectorPoses;

            if (other == null)
            {
                return(false);
            }
            if (poses.Length != other.poses.Length)
            {
                return(false);
            }
            for (int __i__ = 0; __i__ < poses.Length; __i__++)
            {
                ret &= poses[__i__].Equals(other.poses[__i__]);
            }
            if (link_names.Length != other.link_names.Length)
            {
                return(false);
            }
            for (int __i__ = 0; __i__ < link_names.Length; __i__++)
            {
                ret &= link_names[__i__] == other.link_names[__i__];
            }
            // for each SingleType st:
            //    ret &= {st.Name} == other.{st.Name};
            return(ret);
        }
コード例 #30
0
 public void EnqueRosCommand(RosMessage message)
 {
     lock (syncObjCommandQueue) {
         this.rosCommandQueue.Enqueue(message);
         MaybeLog("" + rosCommandQueue.Count());
     }
 }