Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

How can robot machine learning be realized with RoboDK API?

#21
你should use the port argument of Robolink, not the command line option. The API takes care of passing the correct argument to RoboDK. And make sure RoboDK is started with your instance of the API.

Example:
Code:
custom_api_port = 20501
RDK = Robolink(port=custom_port)
#22
(07-31-2023,不必点)Albert Wrote:你should use the port argument of Robolink, not the command line option. The API takes care of passing the correct argument to RoboDK. And make sure RoboDK is started with your instance of the API.

Example:
Code:
custom_api_port = 20501
RDK = Robolink(port=custom_port)
It went well. Now I understand that RoboDK can perform reinforcement learning for parallel processing.
Code:
# self.RDK = Robolink(args=f"-NEWINSTANCE -PORT={self.api_port}")
self.RDK = Robolink(port=self.api_port)


Attached Files Thumbnail(s)

#23
Wonderful! Thank you for your feedback.

你r application looks impressive, let us know if you need more help or you have any suggestions for improvements.
#24
(08-01-2023, 03:11 PM)Albert Wrote:Wonderful! Thank you for your feedback.

你r application looks impressive, let us know if you need more help or you have any suggestions for improvements.

Changed simulation speed from 5 to 50 to increase the acquisition of training data per unit time. However, the speed of the robot became relatively slower than the speed of the conveyor, and the intervals between workpieces changed. How can the speed of the robot and the speed of the conveyor be equally fast?
Code:
#SIM_SPEED_RATIO = 5
SIM_SPEED_RATIO = 50
self.RDK.setSimulationSpeed(SIM_SPEED_RATIO)


Attached Files Thumbnail(s)

#25
Some events take more time to simulate than others, for example, a robot interacting with a part is simulated slower while the conveyor may not slow down. This may produce different simulation results if you run the simulation at high speeds.

One workaround to increase the simulation time if you know when the next event will happen is to increase the time programmatically by using the SimulationTime command.

For example, if you want to advance the simulation by 0.1 seconds, you can do this:

Code:
RDK.Command("SimulationTime", 0.1)




Users browsing this thread:
1 Guest(s)