06-09-2021, 06:19 AM
(04-30-2019 07:39点)Albert Wrote:Hi Robin,
Thank you for your feedback. There is a new update that includes the option to save your samples and the edges matrix through the API as CSV files. As an example, you can use the following code:
Code:current_rdk_file = RDK.getParam("FILE_OPENSTATION")
# Save the N samples as a CSV file: joint values will be saved as one row per set of joints
status_msg = RDK.PluginCommand("CollisionFreePlanner", "SaveSamples", current_rdk_file + "-Joints.csv")
print(status_msg) # Returns "Done" if it worked
# Save the map as a CSV file (matrix of size NxN)
status_msg = RDK.PluginCommand("CollisionFreePlanner", "SaveMap", current_rdk_file + "-Map.csv")
print(status_msg) # Returns "Done" if it worked
Albert
Hi Albert, thanks for this usefull tip
But I do not find any documentation on SaveSamples and SaveMap on the API doc , is there an other link for a updated documentation ?
Thank in advance,
Have a good day