on-internet
← Community

Converting MATLAB code to Python show different output

Stack Overflow ·

I want to convert a MATLAB code to a Python code. The MATLAB code is as follows pcd_file_name = "abc.pcd"; ptCloud = pcread(pcd_file_name); startSt = [1.005, 2.257, 0.2 1 0 0 0]; goalSt = [4.5 3.5 0.2 1 0 0 0]; rotationAngles = [0.0, 0.0, 0.0]; translation = [0.0, 0.0, 0.0]; tform = rigidtform3d(rotationAngles,translation); ptCloud = pctransform(ptCloud,tform); map3D = occupancyMap3D(4); map3D.FreeThreshold = 0.5; pose = [0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0]; maxRange = 15; insertPointCloud(map3D,pose,ptCloud,maxRange); ss = stateSpaceSE3( ... [double(ptCloud.XLimits); double(ptCloud.YLimits); d

Comments

Sign in or sign up to comment and upvote.

No comments yet.