A control method of a soft robot hand
By constructing a digital twin model of a soft robotic arm in the Unity platform and combining it with serial communication, the problem of synchronous control between the virtual model and the physical system of the soft robotic arm in complex environments was solved. Real-time data interaction and status visualization were achieved, improving the intuitiveness of the control process and the stability of the system.
Patent Information
- Application Number
- CN202611453916.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-18
- Publication Date
- 2026-11-20
AI Technical Summary
Due to the complexity of dynamic modeling and the limitations of visual control, soft robotic arms struggle to achieve high-precision synchronous control and data visualization between virtual models and physical systems, making them particularly difficult to operate in complex environments.
A digital twin model of the robotic arm is constructed, and bidirectional control between the virtual environment and the physical system is achieved in the Unity platform through serial communication. By combining joint status feedback, air pressure acquisition, and contact force acquisition, synchronous motion between the virtual model and the physical system is established.
It enables real-time data interaction and status visualization of the soft robotic arm, improves the intuitiveness and observability of the control process, reduces data coupling, and enhances the stability and convenience of the system.
Smart Images

Figure CN123129168A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a control method for a soft robotic arm, belonging to the field of soft robotic arm control technology. Background Technology
[0002] Soft robotic hands, with their flexible materials and unlimited degrees of freedom, demonstrate unique advantages in the field of human-computer interaction, where absolute safety is paramount. Especially in sorting objects with varied shapes and fragile surfaces, such as fruits and vegetables, and in medical device applications such as stroke patient rehabilitation, assistive device design, and assisted surgery, soft hands offer a level of flexibility and safety that is difficult for traditional rigid manipulators to match.
[0003] These working environments are typically unstructured and have extremely low stiffness compared to rigid manipulators. Traditional rigid manipulators struggle to match the stiffness of their materials to that of the environment (people and objects) during interaction. Furthermore, relying on sensing and control to achieve safe interaction, as with rigid dexterous hands, not only presents technical challenges but also increases the overall cost of the device, hindering its widespread application.
[0004] Digital twins, also known as digital mirrors or digital mappings, are an innovative technology used to simulate, predict, and optimize the behavior and performance of physical entities. They create a virtual model through digital means and present it in the digital realm. This model can receive various data from the physical entity, simulate the entity's operation under real-world working conditions, and provide corresponding feedback. Through the interaction between the virtual and real worlds, and the transmission, flow, analysis, and integration of data, precise control over the physical entity can be achieved.
[0005] Although soft robotic arms theoretically have infinite degrees of freedom, this presents challenges in establishing theoretical dynamic models. On the other hand, while soft robotic arms are equipped with visual sensors such as cameras, operators find it difficult to precisely control them in complex environments such as darkness or underground.
[0006] In summary, given the complexity of dynamic modeling of soft manipulators and the limitations of visual control in specific environments, establishing a digital twin of the soft manipulator and constructing a virtual environment based on digital twin control has become a critical technical problem that urgently needs to be solved. However, soft manipulators exhibit characteristics such as large deformation, strong nonlinearity, hysteresis, and uncertain material parameters, making high-fidelity modeling and real-time state mapping extremely difficult. Furthermore, complex contact, changes in external loads, and incomplete sensor information can also lead to deviations between the virtual model and the actual system. Therefore, improving the accuracy, real-time performance, and virtual-real synchronization capability of the digital twin model is a key technical challenge that needs to be overcome in the research of digital twin control for soft manipulators. Summary of the Invention
[0007] The technical problem to be solved by this invention is to provide a soft manipulator control method that can monitor the operating status of a flower-shaped pneumatic soft gripper in real time and realize bidirectional control, state mapping and data visualization between the virtual model and the physical system, thereby improving the intuitiveness of control and the observability of the operating status of the soft manipulator in complex grasping scenarios.
[0008] To solve the above-mentioned technical problems, the soft robotic arm control method of the present invention includes the following steps:
[0009] A. Construct a digital twin model of the robotic arm and define its hierarchical relationships;
[0010] B. Build a soft robotic arm control system and establish wired serial communication between the control system and Unity.
[0011] C. Build a simulation environment in Unity, design the human-computer interaction interface, and establish the posture mapping relationship between virtual joints and physical joints based on the motion axis, initial angle and motion range of each joint of the robotic arm.
[0012] D. Through serial communication, motion control commands are transmitted to the robotic arm control system, causing the physical robotic arm to move to a preset joint angle or target posture, and driving the flower-shaped pneumatic soft gripper to perform corresponding unfolding, retraction, or grasping actions. Simultaneously, Unity updates the corresponding motion parameters and status data to the digital twin model, ensuring that the robotic arm-flower-shaped pneumatic soft gripper system in the virtual environment can simulate the actions of the physical system, achieving synchronized movement between the virtual model and the physical system. Alternatively, the user can first use control buttons to bring the robotic arm-flower-shaped pneumatic soft gripper digital twin model to a specified posture, and then Unity sends the corresponding motion control commands and pneumatic control commands to the robotic arm control system, causing the physical robotic arm and flower-shaped pneumatic soft gripper to move synchronously with the digital twin model.
[0013] In step A, the method for constructing the digital twin model of the robotic arm is as follows:
[0014] Step a: Create a 3D model of the robot arm in the 3D modeling software SolidWorks. The robot arm includes the robot arm body and a flower-shaped pneumatic soft gripper installed at the end of the robot arm. The flower-shaped pneumatic soft gripper consists of a rigid connection structure, a spiral soft drive skeleton and an outer flexible covering layer, and is finally exported in .SAT format.
[0015] Step b: Import the exported SAT format 3D model into 3ds Max software, perform lightweight processing on the model, and finally export it in a Unity-recognizable .FBX format;
[0016] Step c: Drag the robot model directly from the save path to the Unity hierarchy window using the mouse, adjust the size of the model, and set the constraints and parent-child relationships between the parts.
[0017] After building the digital twin model of the robotic arm, relevant motion control scripts are created in the Unity scene and attached to the robotic arm. Then, a serial communication connection is established between the digital twin robotic arm and the real robotic arm to achieve data interaction between the two. The digital twin model acts as the host computer, sending control commands to the real robotic arm via the serial port and receiving status information from the real robotic arm, achieving synchronization between the virtual and real systems.
[0018] In step A, the robotic arm, as the target entity for control, responds to motion commands from the Unity environment to perform operations, specifically including...
[0019] ① Startup initialization function: This function is executed automatically when the system starts up and is responsible for initializing the joint positions and communication settings of the robotic arm;
[0020] ②Motion range limitation function: This function is bound to each motion axis of the robot. When the robot's movement exceeds the preset motion limit or a collision occurs, all movements will stop immediately and an error message window will be triggered.
[0021] ③ Motion execution function: responsible for passing the motion vector data of each axis to the robot model; this function is located in the Update loop in the script and is called once in each frame update cycle of Unity to ensure real-time synchronization of the robot's movement.
[0022] The control system in step B includes a host computer control module, a slave computer control module, a robotic arm execution module, a flower-shaped pneumatic soft gripper execution module, a pneumatic drive module, and a sensor acquisition module. The host computer control module is used to realize the construction of the digital twin model, human-computer interaction, and control command transmission. The slave computer control module is used to receive and parse the control commands, drive the robotic arm and the flower-shaped pneumatic soft gripper to move, and feed back the collected data on the joint status, air pressure value, relay status, and contact force of the robotic arm to the host computer.
[0023] The method for establishing wired serial communication between the control system and Unity in step B is as follows:
[0024] Step a: First, complete the wiring connections between the host computer, the lower computer control board, the robotic arm, the flower-shaped pneumatic soft gripper, the pneumatic drive module, and the sensor acquisition module, and confirm that the power supply, air circuit, and serial port connections are normal.
[0025] Step b: Configure the serial communication parameters in Unity, including the serial port number, baud rate, data bits, stop bits, and parity bits, to make them consistent with the serial communication parameters of the lower-level control board;
[0026] Step c: Establish a dual serial port communication connection between Unity and the physical control system. One serial port is used for the motion control and joint status feedback of the robotic arm, and the other serial port is used for the pneumatic drive, air pressure acquisition, relay status acquisition, and contact force data acquisition of the flower-shaped pneumatic soft gripper. Unity sends control commands to the physical system through the serial port, and the physical system sends back the joint status, air pressure value, relay status, and contact force data of the robotic arm to Unity for digital twin model posture updates, gripper status mapping, and interface visualization.
[0027] The specific steps for step C are as follows:
[0028] Step a: Build a digital twin simulation scene of the robotic arm and flower-shaped pneumatic soft gripper in Unity. Import the robotic arm model and the flower-shaped pneumatic soft gripper model into Unity, and set the parent-child hierarchy, initial position and initial posture between each component according to the assembly relationship of the physical system.
[0029] Step b: Use the UGUI component in Unity to build a human-computer interaction interface. The human-computer interaction interface includes a simulation start button, a simulation end button, a robotic arm joint control slider, a joint angle input box, a flower-shaped pneumatic soft gripper pneumatic control button, an air pressure value display area, a relay status display area, a contact force data display area, and a system operation status display area.
[0030] Step c: The user clicks the "Start Simulation" button to enter motion simulation, and the user terminates the motion simulation process by clicking the "End Simulation" button. During the simulation, the user sets the target angle of each joint of the robotic arm by dragging the joint control slider or entering values in the joint angle input box, so that the digital twin model updates to the corresponding posture in real time. At the same time, the user sets the unfolding, retraction, or grasping action of the gripper through the pneumatic control button of the flower-shaped pneumatic soft gripper, so that the flower-shaped pneumatic soft gripper model in the Unity scene displays the corresponding status synchronously.
[0031] Step d: Based on the motion axis, initial angle, minimum motion angle, and maximum motion angle of each joint of the robotic arm, establish the angle mapping relationship between the virtual joint and the physical joint. This mapping is then applied to the human-computer interaction interface. The input value of each slider is denoted as The minimum and maximum angles of this joint are denoted as follows: and Then the first Target angle of each joint according to The calculation is performed. After the target angle is obtained, the target angle is assigned to the local Euler angle of the corresponding joint model in Unity according to the preset motion axis X, Y or Z of the joint. The other non-motion axes keep the initial angle unchanged, thereby completing the posture update of the digital twin robotic arm model.
[0032] Step e: Based on the target angles of each joint calculated in step d, generate control instructions that can be recognized by the physical robotic arm; the control instructions include instruction type, joint number, target angle, speed parameter and acceleration parameter, and are encapsulated in JSON format; Unity sends the encapsulated control instructions to the lower-level control board through serial communication. After receiving and parsing the instructions, the lower-level control board controls the corresponding joints of the physical robotic arm to perform rotational actions.
[0033] Step f: During the movement of the physical robotic arm, the lower-level control board feeds back the actual joint state data to Unity via serial port. The C# script in Unity receives and buffers the serial port data, checks the integrity of the JSON, and parses the data, extracts the feedback values of each joint, and converts the feedback radian values into angle values. Then, based on the minimum and maximum angles of each joint, it calculates the corresponding slider values and synchronously updates the posture of the human-computer interaction interface and the digital twin robotic arm model, realizing posture synchronization between the physical robotic arm and the digital twin model.
[0034] Step D includes the following steps:
[0035] Step a: Adjust the robot arm's posture through physical control. The robot arm control system collects the status data of each joint in real time and transmits it to Unity via serial communication. The C# script in Unity parses and transforms the received data to obtain the actual motion state of each joint of the robot arm, and sends it to the motion control script of the digital twin model to drive the robot arm digital twin in Unity to update its posture synchronously.
[0036] Step b: Change the pose of the robotic arm by sliding the corresponding slider on the robotic arm model of the human-computer interaction interface. These data are processed by the motion control script and transmitted to the digital twin model of the robotic arm for control.
[0037] Step c: The C# script in Unity obtains the motion parameters of the digital twin model in real time, generates control commands according to the preset serial communication protocol, and sends them to the lower-level control board through serial communication;
[0038] Step d: The lower-level control board parses the received control commands and drives the physical robotic arm and flower-shaped pneumatic soft gripper to perform corresponding actions based on the parsing results. At the same time, it sends the collected joint status, air pressure value, relay status and contact force data back to Unity to achieve synchronous control and status feedback between the virtual model and the physical system.
[0039] The advantages of this invention are:
[0040] (1) This invention constructs a digital twin model of a physical robotic arm and a flower-shaped pneumatic soft gripper in Unity, and combines serial communication, joint status feedback, air pressure acquisition, relay status acquisition and contact force acquisition to realize real-time data interaction between the physical entity of the soft robotic arm and the virtual model. Unlike simply displaying a three-dimensional model, this invention can synchronously map the joint motion state of the physical robotic arm, the pneumatic drive state of the soft gripper and the changes in contact force to the digital twin model, so that the operator can intuitively grasp the motion state, gripper opening and closing state and force state of the physical soft robotic arm through the virtual environment, thereby improving the visualization degree and state perception ability of the soft robotic arm control process.
[0041] (2) The present invention adopts a dual serial port communication method to separate the robotic arm motion control link from the pneumatic and sensing link of the flower-shaped pneumatic soft gripper, thereby reducing the data coupling between different control and acquisition tasks and improving the clarity of the system communication structure and the stability of operation.
[0042] (3) The present invention can synchronously feed back the joint status, air pressure value, relay status and contact force data of the robotic arm to Unity for virtual model posture update, gripper opening and closing status mapping and real-time curve display, so that the operator can intuitively grasp the motion status, pneumatic drive status and contact force changes of the physical system.
[0043] (4) By integrating digital twin technology, serial communication control, and multi-source sensor feedback, a digital twin model of a soft manipulator is constructed in the Unity platform, and bidirectional data interaction between the virtual model and the physical system is achieved through serial communication. This method can display the joint status of the manipulator, the pneumatic status of the soft gripper, air pressure value, and contact force data in real time, realizing intuitive monitoring, virtual-real synchronization, and collaborative control of the soft manipulator's operation process, thus improving the convenience and visualization of system control. Attached Figure Description
[0044] Figure 1 This is a flowchart of the control method for the soft robotic arm of the present invention;
[0045] Figure 2 This is a control system framework diagram of the control method for the soft robotic arm of the present invention. Detailed Implementation
[0046] The control method of the soft robotic arm of the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0047] As shown in the figure, the control method for the soft robotic arm of the present invention includes the following steps:
[0048] A. Construct a digital twin model of the robotic arm and define its hierarchical relationships;
[0049] The method for constructing the digital twin model of the robotic arm is as follows:
[0050] Step a: Create a 3D model of the robot arm in the 3D modeling software SolidWorks. The robot arm includes the robot arm body and a flower-shaped pneumatic soft gripper installed at the end of the robot arm. The flower-shaped pneumatic soft gripper consists of a rigid connection structure, a spiral soft drive skeleton and an outer flexible covering layer, and is finally exported in .SAT format.
[0051] Step b: Import the exported .SAT format 3D model into 3ds Max software, perform lightweight processing on the model, and finally export it in the Unity-recognized .FBX format;
[0052] Step c: Drag the robot model directly from the save path to the Unity hierarchy window using the mouse, adjust the size of the model, and set the constraints and parent-child relationships between the parts.
[0053] After building the digital twin model of the robotic arm, relevant motion control scripts are created in the Unity scene and attached to the robotic arm. Then, a serial communication connection is established between the digital twin robotic arm and the real robotic arm to achieve data interaction between the two. The digital twin model acts as the host computer, sending control commands to the real robotic arm via the serial port and receiving status information from the real robotic arm, achieving synchronization between the virtual and real systems.
[0054] The robotic arm, as the target entity for control, responds to motion commands from the Unity environment to perform operations, specifically including...
[0055] ① Startup initialization function: This function is executed automatically when the system starts up and is responsible for initializing the joint positions and communication settings of the robotic arm;
[0056] ②Motion range limitation function: This function is bound to each motion axis of the robot. When the robot's movement exceeds the preset motion limit or a collision occurs, all movements will stop immediately and an error message window will be triggered.
[0057] ③ Motion execution function: responsible for passing the motion vector data of each axis to the robot model; this function is located in the Update loop in the script and is called once in each frame update cycle of Unity to ensure real-time synchronization of the robot's movement.
[0058] B. Build a soft robotic arm control system and establish wired serial communication between the control system and Unity.
[0059] The control system in step B includes a host computer control module, a slave computer control module, a robotic arm execution module, a flower-shaped pneumatic soft gripper execution module, a pneumatic drive module, and a sensor acquisition module. The host computer control module is used to realize the construction of the digital twin model, human-computer interaction, and control command transmission. The slave computer control module is used to receive and parse the control commands, drive the robotic arm and the flower-shaped pneumatic soft gripper to move, and feed back the collected data on the joint status, air pressure value, relay status, and contact force of the robotic arm to the host computer.
[0060] The method for establishing wired serial communication between the control system and Unity in step B is as follows:
[0061] Step a: First, complete the wiring connections between the host computer, the lower computer control board, the robotic arm, the flower-shaped pneumatic soft gripper, the pneumatic drive module, and the sensor acquisition module, and confirm that the power supply, air circuit, and serial port connections are normal.
[0062] Step b: Configure the serial communication parameters in Unity, including the serial port number, baud rate, data bits, stop bits, and parity bits, to make them consistent with the serial communication parameters of the lower-level control board;
[0063] Step c: Establish a dual serial port communication connection between Unity and the physical control system. One serial port is used for the motion control and joint status feedback of the robotic arm, and the other serial port is used for the pneumatic drive, air pressure acquisition, relay status acquisition, and contact force data acquisition of the flower-shaped pneumatic soft gripper. Unity sends control commands to the physical system through the serial port, and the physical system sends back the joint status, air pressure value, relay status, and contact force data of the robotic arm to Unity for digital twin model posture updates, gripper status mapping, and interface visualization.
[0064] C. Build a simulation environment in Unity and design a human-computer interaction interface. Based on the motion axis, initial angle, and range of motion of each joint of the robotic arm, establish the posture mapping relationship between the virtual joints and the physical joints. When the user sets the joint motion parameters through sliders or parameter input boxes, the C# script in Unity calculates the target rotation angle of the corresponding joint based on the preset maximum angle, minimum angle, and slider input value, and assigns this angle to the local Euler angle of the corresponding joint in the digital twin model to realize the posture update of the virtual robotic arm. When the physical robotic arm feeds back joint status data, Unity receives JSON format data through the serial port, converts the joint radian values into angle values, and then maps them to the corresponding virtual joints and the human-computer interaction interface to realize the posture synchronization between the physical robotic arm and the digital twin model.
[0065] The specific steps for step C are as follows:
[0066] Step a: Build a digital twin simulation scene of the robotic arm and flower-shaped pneumatic soft gripper in Unity. Import the robotic arm model and the flower-shaped pneumatic soft gripper model into Unity, and set the parent-child hierarchy, initial position and initial posture between each component according to the assembly relationship of the physical system.
[0067] Step b: Use the UGUI component in Unity to build a human-computer interaction interface. The human-computer interaction interface includes a simulation start button, a simulation end button, a robotic arm joint control slider, a joint angle input box, a flower-shaped pneumatic soft gripper pneumatic control button, an air pressure value display area, a relay status display area, a contact force data display area, and a system operation status display area.
[0068] Step c: The user clicks the "Start Simulation" button to enter motion simulation, and the user terminates the motion simulation process by clicking the "End Simulation" button. During the simulation, the user sets the target angle of each joint of the robotic arm by dragging the joint control slider or entering values in the joint angle input box, so that the digital twin model updates to the corresponding posture in real time. At the same time, the user sets the unfolding, retracting or grasping action of the gripper by using the pneumatic control button of the flower-shaped pneumatic soft gripper, so that the flower-shaped pneumatic soft gripper model in the Unity scene displays the corresponding status synchronously.
[0069] Step d: Based on the motion axis, initial angle, minimum motion angle, and maximum motion angle of each joint of the robotic arm, establish the angle mapping relationship between the virtual joint and the physical joint. This mapping is then applied to the human-computer interaction interface. The input value of each slider is denoted as The minimum and maximum angles of the joint are denoted as follows: and Then the first Target angle of each joint according to The calculation is performed. After the target angle is obtained, the target angle is assigned to the local Euler angle of the corresponding joint model in Unity according to the preset motion axis X, Y or Z of the joint. The other non-motion axes keep the initial angle unchanged, thereby completing the posture update of the digital twin robotic arm model.
[0070] Step e: Based on the target angles of each joint calculated in step d, generate control commands that the physical robotic arm can recognize. The control commands include command type, joint number, target angle, velocity parameters, and acceleration parameters, and are encapsulated in JSON format. Unity sends the encapsulated control commands to the lower-level control board via serial communication. After receiving and parsing the commands, the lower-level control board controls the corresponding joints of the physical robotic arm to perform rotational movements.
[0071] Step f: During the movement of the physical robotic arm, the lower-level control board feeds back the actual joint state data to Unity via serial port. The C# script in Unity receives and buffers the serial port data, checks the integrity of the JSON, and parses the data, extracts the feedback values of each joint, and converts the feedback radian values into angle values. Then, based on the minimum and maximum angles of each joint, it calculates the corresponding slider values and synchronously updates the posture of the human-computer interaction interface and the digital twin robotic arm model, realizing posture synchronization between the physical robotic arm and the digital twin model.
[0072] D. Through serial communication, motion control commands are transmitted to the robotic arm control system, causing the physical robotic arm to move to a preset joint angle or target posture, and driving the flower-shaped pneumatic soft gripper to perform corresponding unfolding, retraction, or grasping actions. Simultaneously, Unity updates the corresponding motion parameters and status data to the digital twin model, ensuring that the robotic arm-flower-shaped pneumatic soft gripper system in the virtual environment can simulate the actions of the physical system, achieving synchronized movement between the virtual model and the physical system. Alternatively, the user can first use control buttons to bring the robotic arm-flower-shaped pneumatic soft gripper digital twin model to a specified posture, and then Unity sends the corresponding motion control commands and pneumatic control commands to the robotic arm control system, causing the physical robotic arm and flower-shaped pneumatic soft gripper to move synchronously with the digital twin model.
[0073] Step D includes the following steps:
[0074] Step a: Adjust the robot arm's posture through physical control. The robot arm control system collects the status data of each joint in real time and transmits it to Unity via serial communication. The C# script in Unity parses and transforms the received data to obtain the actual motion state of each joint of the robot arm, and sends it to the motion control script of the digital twin model to drive the robot arm digital twin in Unity to update its posture synchronously.
[0075] Step b: Change the pose of the robotic arm by sliding the corresponding slider on the robotic arm model of the human-computer interaction interface. These data are processed by the motion control script and transmitted to the digital twin model of the robotic arm for control.
[0076] Step c: The C# script in Unity obtains the motion parameters of the digital twin model in real time, generates control commands according to the preset serial communication protocol, and sends them to the lower-level control board through serial communication;
[0077] Step d: The lower-level control board parses the received control commands and drives the physical robotic arm and flower-shaped pneumatic soft gripper to perform corresponding actions based on the parsing results. At the same time, it sends the collected joint status, air pressure value, relay status and contact force data back to Unity to achieve synchronous control and status feedback between the virtual model and the physical system.
[0078] Of course, the above description is not intended to limit the present invention, and the present invention is not limited to the examples given above. Any changes, modifications, additions or substitutions made by those skilled in the art within the scope of the present invention should also fall within the protection scope of the present invention.
Claims
1. A control method for a soft robotic arm, characterized in that, Includes the following steps: A. Construct a digital twin model of the robotic arm and define its hierarchical relationships; B. Build a soft robotic arm control system and establish wired serial communication between the control system and Unity. C. Build a simulation environment in Unity, design the human-computer interaction interface, and establish the posture mapping relationship between virtual joints and physical joints based on the motion axis, initial angle and motion range of each joint of the robotic arm. D. Through serial communication, motion control commands are transmitted to the robotic arm control system, causing the physical robotic arm to move to a preset joint angle or target posture, and driving the flower-shaped pneumatic soft gripper to perform corresponding unfolding, retraction, or grasping actions. At the same time, Unity updates the corresponding motion parameters and status data to the digital twin model, realizing the synchronous movement of the virtual model and the physical control system. Alternatively, by using control buttons, the robotic arm and the flower-shaped pneumatic soft gripper digital twin model can first reach a specified posture, and then Unity sends the corresponding motion control commands and pneumatic control commands to the robotic arm control system, so that the physical robotic arm and the flower-shaped pneumatic soft gripper move synchronously with the digital twin model.
2. The soft robotic arm control method according to claim 1, characterized in that: In step A, the method for constructing the digital twin model of the robotic arm is as follows: Step a: Create a 3D model of the robot in the 3D modeling software SolidWorks. The robot includes a robotic arm and a flower-shaped pneumatic soft gripper installed at the end of the robotic arm. The flower-shaped pneumatic soft gripper consists of a rigid connection structure, a spiral soft drive skeleton and an outer flexible covering layer, and is finally exported in .SAT format. Step b: Import the exported .SAT format 3D model into 3ds Max software, perform lightweight processing on the model, and finally export it in the Unity-recognized .FBX format; Step c: Drag the robot model directly from the save path to the Unity hierarchy window using the mouse, adjust the size of the model, and set the constraints and parent-child relationships between the parts.
3. The soft robotic arm control method according to claim 1, characterized in that: After building the digital twin model of the robotic arm, relevant motion control scripts are created in the Unity scene and attached to the robotic arm. Then, a serial communication connection is established between the digital twin robotic arm and the real robotic arm to realize data interaction between the two. The digital twin model acts as the host computer, sending control commands to the real robotic arm through the serial port and receiving status information from the real robotic arm to achieve virtual-real synchronization.
4. The soft robotic arm control method according to claim 1, characterized in that: The robotic arm, as the target entity for control, responds to motion commands from the Unity environment to perform operations, specifically including... ① Startup initialization function: This function is executed automatically when the system starts up and is responsible for initializing the joint positions and communication settings of the robotic arm; ②Motion range limitation function: This function is bound to each motion axis of the robot. When the robot's movement exceeds the preset motion limit or a collision occurs, all movements will stop immediately and an error message window will be triggered. ③ Motion execution function: responsible for passing the motion vector data of each axis to the robot model; this function is located in the Update loop in the script and is called once in each frame update cycle of Unity to ensure real-time synchronization of the robot's movement.
5. The soft robotic arm control method according to claim 1, characterized in that: The control system in step B includes a host computer control module, a slave computer control module, a robotic arm execution module, a flower-shaped pneumatic soft gripper execution module, a pneumatic drive module, and a sensor acquisition module. The host computer control module is used to realize the construction of the digital twin model, human-computer interaction, and control command transmission. The slave computer control module is used to receive and parse the control commands, drive the robotic arm and the flower-shaped pneumatic soft gripper to move, and feed back the collected data on the joint status, air pressure value, relay status, and contact force of the robotic arm to the host computer.
6. The soft robotic arm control method according to claim 1, characterized in that: The method for establishing wired serial communication between the control system and Unity in step B is as follows: Step a: First, complete the wiring connections between the host computer, slave computer, robotic arm, flower-shaped pneumatic soft gripper, pneumatic drive module, and sensor acquisition module, and confirm that the power supply, air circuit, and serial port connections are normal. Step b: Configure the serial communication parameters in Unity, including the serial port number, baud rate, data bits, stop bits, and parity bits, to make them consistent with the serial communication parameters of the lower-level control board; Step c: Establish a dual serial port communication connection between Unity and the physical control system. One serial port is used for the motion control and joint status feedback of the robotic arm, and the other serial port is used for the pneumatic drive, air pressure acquisition, relay status acquisition, and contact force data acquisition of the flower-shaped pneumatic soft gripper. Unity sends control commands to the physical system through the serial port, and the physical system sends back the joint status, air pressure value, relay status, and contact force data of the robotic arm to Unity for digital twin model posture updates, gripper status mapping, and interface visualization.
7. The soft robotic arm control method according to claim 1, characterized in that: The specific steps for step C are as follows: Step a: Build a digital twin simulation scene of the robotic arm and the flower-shaped pneumatic soft gripper in Unity. Import the robotic arm model and the flower-shaped pneumatic soft gripper model into Unity, and set the parent-child hierarchy, initial position and initial posture between each component according to the assembly relationship of the physical system. Step b: Use the UGUI component in Unity to build a human-computer interaction interface. The human-computer interaction interface includes a simulation start button, a simulation end button, a robotic arm joint control slider, a joint angle input box, a flower-shaped pneumatic soft gripper pneumatic control button, an air pressure value display area, a relay status display area, a contact force data display area, and a system operation status display area. Step c: The user clicks the "Start Simulation" button to enter the motion simulation, and the user terminates the motion simulation process by clicking the "End Simulation" button. During the simulation, users can set the target angles of each joint of the robotic arm by dragging the joint control slider or entering values in the joint angle input box, so that the digital twin model can be updated to the corresponding posture in real time. At the same time, users can set the unfolding, retraction or grasping action of the gripper through the pneumatic control button of the flower-shaped pneumatic soft gripper, so that the flower-shaped pneumatic soft gripper model in the Unity scene can display the corresponding status synchronously. Based on the motion axis, initial angle, minimum motion angle and maximum motion angle of each joint of the robotic arm, establish the angle mapping relationship between the virtual joint and the physical joint and complete the posture update of the digital twin robotic arm model. Step e: Based on the target angles of each joint calculated in step d, generate control instructions that can be recognized by the physical robotic arm; the control instructions include instruction type, joint number, target angle, speed parameter and acceleration parameter, and are encapsulated in JSON format; Unity sends the encapsulated control instructions to the lower-level control board through serial communication. After receiving and parsing the instructions, the lower-level control board controls the corresponding joints of the physical robotic arm to perform rotational actions. Step f: During the movement of the physical robotic arm, the lower-level control board feeds back the actual joint state data to Unity via serial port. The C# script in Unity receives and buffers the serial port data, checks the integrity of the JSON, and parses the data, extracts the feedback values of each joint, and converts the feedback radian values into angle values. Then, based on the minimum and maximum angles of each joint, the corresponding slider values are calculated, and the posture of the human-machine interface and the digital twin robotic arm model are updated synchronously to achieve posture synchronization between the physical robotic arm and the digital twin model.
8. The soft robotic arm control method according to claim 1, characterized in that: Step D includes the following steps: Step a: Adjust the posture of the robotic arm through physical control. The robotic arm control system collects the status data of each joint in real time and transmits it to Unity via serial communication. The C# script in Unity parses and transforms the received data to obtain the actual motion state of each joint of the robotic arm and sends it to the motion control script of the digital twin model to drive the robotic arm digital twin in Unity to update its posture synchronously. Step b: Change the pose of the robotic arm by sliding the corresponding slider on the robotic arm model of the human-computer interaction interface. These data are processed by the motion control script and transmitted to the digital twin model of the robotic arm for control. Step c: The C# script in Unity obtains the motion parameters of the digital twin model in real time, generates control commands according to the preset serial communication protocol, and sends them to the lower-level control board through serial communication; Step d: The lower-level control board parses the received control commands and drives the physical robotic arm and flower-shaped pneumatic soft gripper to perform corresponding actions based on the parsing results. At the same time, it sends the collected joint status, air pressure value, relay status and contact force data back to Unity to achieve synchronous control and status feedback between the virtual model and the physical system.
9. The soft robotic arm control method according to claim 7, characterized in that: In step c, the pose update method for the digital twin robotic arm model is as follows: The first in the human-computer interaction interface The input value of each slider is denoted as The minimum and maximum angles of this joint are denoted as follows: and Then the first Target angle of each joint according to The calculation is performed; after the target angle is obtained, the target angle is assigned to the local Euler angle of the corresponding joint model in Unity according to the preset motion axis X, Y or Z of the joint, while the other non-motion axes keep the initial angle unchanged, thereby completing the posture update of the digital twin robotic arm model.
