How can i plot the New_P in 3D i'm using robotic toolbox peter corke i should use trplot() function but it's not working it shows that it takes 3x3 or 4x4 any way to plot it on 3d
P = transpose([2,3,4,0]);
New_P = trotx(45) * P
trplot(New_P)
Please read on how to ask questions properly . If you read on trplot
, it obviously says that:
trplot(T, options)
draws a 3D coordinate frame represented by the homogeneous transformT
(4x4) .
and
trplot(R, options)
as above but the coordinate frame is rotated about the origin according to the orthonormal rotation matrixR
(3x3) .
I do not know how trtox
is defined and what the class of trtox(45)
is, but P
is a 4x1 vector and therefor New_P
most likely does not seem to be a proper input for trplot
, hence the complaint on the input size.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.