Open Access iconOpen Access

ARTICLE

crossmark

B-Spline-Based Curve Fitting to Cam Pitch Curve Using Reinforcement Learning

Zhiwei Lin1, Tianding Chen1,*, Yingtao Jiang2, Hui Wang1, Shuqin Lin1, Ming Zhu2

1 School of Physics and Information Engineering, Minnan Normal University, Zhang Zhou, Fujian, 363000, China
2 Department of Electrical and Computer Engineering, University of Nevada, Las Vegas, NV, 89154, USA

* Corresponding Author: Tianding Chen. Email: email

Intelligent Automation & Soft Computing 2023, 36(2), 2145-2164. https://doi.org/10.32604/iasc.2023.035555

Abstract

Directly applying the B-spline interpolation function to process plate cams in a computer numerical control (CNC) system may produce verbose tool-path codes and unsmooth trajectories. This paper is devoted to addressing the problem of B-spline fitting for cam pitch curves. Considering that the B-spline curve needs to meet the motion law of the follower to approximate the pitch curve, we use the radial error to quantify the effects of the fitting B-spline curve and the pitch curve. The problem thus boils down to solving a difficult global optimization problem to find the numbers and positions of the control points or data points of the B-spline curve such that the cumulative radial error between the fitting curve and the original curve is minimized, and this problem is attempted in this paper with a double deep Q-network (DDQN) reinforcement learning (RL) algorithm with data points traceability. Specifically, the RL environment, actions set and current states set are designed to facilitate the search of the data points, along with the design of the reward function and the initialization of the neural network. The experimental results show that when the angle division value of the actions set is fixed, the proposed algorithm can maximize the number of data points of the B-spline curve, and accurately place these data points to the right positions, with the minimum average of radial errors. Our work establishes the theoretical foundation for studying spline fitting using the RL method.

Keywords


Cite This Article

Z. Lin, T. Chen, Y. Jiang, H. Wang, S. Lin et al., "B-spline-based curve fitting to cam pitch curve using reinforcement learning," Intelligent Automation & Soft Computing, vol. 36, no.2, pp. 2145–2164, 2023. https://doi.org/10.32604/iasc.2023.035555



cc This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 667

    View

  • 349

    Download

  • 1

    Like

Related articles

Share Link