-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathIterativeParabolicTimeParameterization.lua
More file actions
46 lines (37 loc) · 1.28 KB
/
IterativeParabolicTimeParameterization.lua
File metadata and controls
46 lines (37 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
--- LUA wrapper for moveit planning environment
-- dependency to tourch.ros
-- @classmod IterativeParabolicTimeParameterization
local ffi = require 'ffi'
local torch = require 'torch'
local ros = require 'ros'
local moveit = require 'moveit.env'
local utils = require 'moveit.utils'
local tf = ros.tf
local IterativeParabolicTimeParameterization = torch.class('moveit.IterativeParabolicTimeParameterization', moveit)
local f
function init()
local IterativeParabolicTimeParameterization_method_names = {
"new",
"delete",
"release",
"computeTimeStamps"
}
f = utils.create_method_table("moveit_IterativeParabolicTimeParameterization_", IterativeParabolicTimeParameterization_method_names)
end
init()
--- Init function.
-- Specify the group name for which to construct this commander instance.
-- Throws an exception if there is an initialization error.
-- @tparam string name of the kinematic move group
function IterativeParabolicTimeParameterization:__init()
self.o = f.new()
end
function IterativeParabolicTimeParameterization:release()
f.release(self.o)
end
function IterativeParabolicTimeParameterization:cdata()
return self.o
end
function IterativeParabolicTimeParameterization:computeTimeStamps(robotTrajectory)
f.computeTimeStamps(self.o,robotTrajectory:cdata())
end