コード例 #1
0
        public static string GetMessageClassPath(string inFilePath, string outPath)
        {
            string rosPackageName = MessageAutoGen.GetRosPackageName(inFilePath);
            string outFolder      = MessageAutoGen.GetMessageOutFolder(outPath, rosPackageName);
            string extension      = Path.GetExtension(inFilePath);
            string className      = MsgAutoGenUtilities.CapitalizeFirstLetter(Path.GetFileNameWithoutExtension(inFilePath));

            return(Path.Combine(outFolder, "msg", className + ".cs"));
        }
コード例 #2
0
        public static string[] GetActionClassPaths(string inFilePath, string outPath)
        {
            string rosPackageName = MessageAutoGen.GetRosPackageName(inFilePath);
            string outFolder      = MessageAutoGen.GetMessageOutFolder(outPath, rosPackageName);
            string extension      = Path.GetExtension(inFilePath);
            string className      = MsgAutoGenUtilities.CapitalizeFirstLetter(Path.GetFileNameWithoutExtension(inFilePath)) + MsgAutoGenUtilities.ActionClassSuffix;

            string[] result = new string[types.Length];
            for (int Idx = 0; Idx < types.Length; ++Idx)
            {
                result[Idx] = Path.Combine(outFolder, "action", className + types[Idx] + ".cs");
            }
            return(result);
        }