- 新增 AGV_MOVE_TO_STATION 操作类型用于移动到指定站点 - 添加 DEVICE_EXECUTE_JSON_COMMAND 类型用于执行设备通用指令 - 移除独立的 agv.proto 文件并将相关内容合并到 agv_utils.proto - 更新 AGV 命令协议导入路径指向新的工具协议文件 - 优化 AGV 运动选项注释说明同步阻塞行为默认设置 - 为路径导航命令添加执行选项参数支持 - 新增臂式机器人远程操作服务协议定义 - 实现臂式机器人远程操作服务的gRPC接口代码
157 lines
7.1 KiB
XML
157 lines
7.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<parent>
|
|
<groupId>com.cmvr</groupId>
|
|
<artifactId>cmvr-iot-edge</artifactId>
|
|
<version>3.9.2</version>
|
|
</parent>
|
|
|
|
<artifactId>cmvr-iot-grpc-lib</artifactId>
|
|
|
|
<properties>
|
|
<cmvr.es.repository>ssh://git@192.168.28.10:10022/SmartBench/cmvr-es.git</cmvr.es.repository>
|
|
<cmvr.es.proto.ref>xtkuang_dev</cmvr.es.proto.ref>
|
|
<cmvr.es.checkout.dir>${project.build.directory}/cmvr-es</cmvr.es.checkout.dir>
|
|
</properties>
|
|
<description> cmvr-iot gRPC 公共 proto 生成库</description>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>io.grpc</groupId>
|
|
<artifactId>grpc-netty-shaded</artifactId>
|
|
<version>${grpc.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.grpc</groupId>
|
|
<artifactId>grpc-protobuf</artifactId>
|
|
<version>${grpc.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.grpc</groupId>
|
|
<artifactId>grpc-stub</artifactId>
|
|
<version>${grpc.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.protobuf</groupId>
|
|
<artifactId>protobuf-java</artifactId>
|
|
<version>3.25.5</version>
|
|
</dependency>
|
|
|
|
<!-- Java 9+ 兼容性依赖 -->
|
|
<dependency> <!-- necessary for Java 9+ -->
|
|
<groupId>org.apache.tomcat</groupId>
|
|
<artifactId>annotations-api</artifactId>
|
|
<version>6.0.53</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<extensions>
|
|
<extension>
|
|
<groupId>kr.motd.maven</groupId>
|
|
<artifactId>os-maven-plugin</artifactId>
|
|
<version>1.7.1</version>
|
|
</extension>
|
|
</extensions>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<version>3.1.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>fetch-cmvr-es-protos</id>
|
|
<phase>initialize</phase>
|
|
<configuration>
|
|
<target>
|
|
<delete dir="${cmvr.es.checkout.dir}" quiet="true"/>
|
|
<mkdir dir="${project.build.directory}"/>
|
|
<exec executable="git" failonerror="true">
|
|
<arg value="clone"/>
|
|
<arg value="--depth"/>
|
|
<arg value="1"/>
|
|
<arg value="--filter=blob:none"/>
|
|
<arg value="--sparse"/>
|
|
<arg value="--single-branch"/>
|
|
<arg value="--branch"/>
|
|
<arg value="${cmvr.es.proto.ref}"/>
|
|
<arg value="${cmvr.es.repository}"/>
|
|
<arg value="${cmvr.es.checkout.dir}"/>
|
|
</exec>
|
|
<exec executable="git" failonerror="true">
|
|
<arg value="-C"/>
|
|
<arg value="${cmvr.es.checkout.dir}"/>
|
|
<arg value="sparse-checkout"/>
|
|
<arg value="set"/>
|
|
<arg value="protos/cmvr/api"/>
|
|
<arg value="protos/cmvr/msgs"/>
|
|
<arg value="protos/cmvr/common"/>
|
|
</exec>
|
|
<exec executable="git" failonerror="true">
|
|
<arg value="-C"/>
|
|
<arg value="${cmvr.es.checkout.dir}"/>
|
|
<arg value="rev-parse"/>
|
|
<arg value="HEAD"/>
|
|
</exec>
|
|
<delete dir="${basedir}/src/main/proto/cmvr" quiet="true"/>
|
|
<copy todir="${basedir}/src/main/proto/cmvr/api">
|
|
<fileset dir="${cmvr.es.checkout.dir}/protos/cmvr/api" includes="**/*.proto"/>
|
|
</copy>
|
|
<copy todir="${basedir}/src/main/proto/cmvr/msgs">
|
|
<fileset dir="${cmvr.es.checkout.dir}/protos/cmvr/msgs" includes="**/*.proto"/>
|
|
</copy>
|
|
<copy todir="${basedir}/src/main/proto/cmvr/common">
|
|
<fileset dir="${cmvr.es.checkout.dir}/protos/cmvr/common" includes="**/*.proto"/>
|
|
</copy>
|
|
<delete dir="${basedir}/src/main/java/cmvr" quiet="true"/>
|
|
</target>
|
|
</configuration>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.xolstice.maven.plugins</groupId>
|
|
<artifactId>protobuf-maven-plugin</artifactId>
|
|
<version>0.6.1</version>
|
|
<configuration>
|
|
<protocArtifact>com.google.protobuf:protoc:3.21.7:exe:${os.detected.classifier}</protocArtifact>
|
|
<pluginId>grpc-java</pluginId>
|
|
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.52.0:exe:${os.detected.classifier}</pluginArtifact>
|
|
<protoSourceRoot>${basedir}/src/main/proto</protoSourceRoot>
|
|
<outputDirectory>${basedir}/src/main/java</outputDirectory>
|
|
<clearOutputDirectory>false</clearOutputDirectory>
|
|
<includes>
|
|
<include>cmvr/api/*.proto</include>
|
|
<include>cmvr/msgs/*.proto</include>
|
|
<include>cmvr/common/*.proto</include>
|
|
</includes>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>compile</goal>
|
|
<goal>compile-custom</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<configuration>
|
|
<source>8</source>
|
|
<target>8</target>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project>
|