Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Collision Avoidance
#21
(04-30-2019, 07:39 PM)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
#22
Unfortunately we don't have documentation about this special API feature. The sample code I sent you works and creates a CSV file.
  




Users browsing this thread:
1 Guest(s)