AS: joint and cartesian limits
This commit is contained in:
@@ -56,8 +56,8 @@ class JointStateLogger(Node):
|
||||
writer.writerow(["timestamp", "x", "y", "z", "roll", "pitch", "yaw"])
|
||||
with open(file_path_cart, mode='a', newline='') as f:
|
||||
writer = csv.writer(f)
|
||||
[x,y,z] = self.robot.fkine(list([msg.position[-1]])+list(msg.position[:4])).t
|
||||
[roll, pitch, yaw] = self.robot.fkine(list([msg.position[-1]])+list(msg.position[:4])).rpy()
|
||||
[x,y,z] = self.robot.fkine(list([msg.position[-1]])+list(msg.position[:5])).t
|
||||
[roll, pitch, yaw] = self.robot.fkine(list([msg.position[-1]])+list(msg.position[:5])).rpy()
|
||||
writer.writerow([timestamp, x, y, z, roll, pitch, yaw])
|
||||
|
||||
|
||||
|
||||
@@ -59,9 +59,7 @@ class JointTrajectoryLogger(Node):
|
||||
for point in msg.points:
|
||||
timestamp = recive_time + point.time_from_start.sec + point.time_from_start.nanosec * 1e-9
|
||||
T = self.robot.fkine(point.positions)
|
||||
x = T.t[0]
|
||||
y = T.t[1]
|
||||
z = T.t[2]
|
||||
[x,y,z] = T.t
|
||||
roll, pitch, yaw = T.rpy()
|
||||
row = [timestamp, x, y, z, roll, pitch, yaw]
|
||||
writer.writerow(row)
|
||||
|
||||
Reference in New Issue
Block a user