Homeworks of RPC module B
Simone Cremasco VR468971
For this exercise you need to run
roslaunch homework b1.launch
This will open rviz and load the scara urdf which is available in urdf
folder.
To ask for direct kinematics run (change 0 0 0 0 with joint values you want)
rosservice call /directKinematics 0 0 0 0
The result will be
pose:
position:
x: 0.6
y: 0.0
z: -0.09999999999999998
orientation:
x: 0.0
y: 0.0
z: 0.0
w: 1.0
To ask for inverse kinematics run (change 0.6 0 -0.1 0 with x y z phi values you want)
rosservice call /inverseKinematics -- 0.6 0 -0.1 0
The result will be
j1: -0.0
j2: 0.0
j3: -0.0
j4: 0.0
For this exercise you need to run
roslaunch homework b2.launch
This will activate bring up the necessary scripts for move it. Once loaded run
rosrun homework move
By pressing next when requested you can see the result, here's an animation.
In order we have:
- move to a specific pose
- move to a specific joint state
- follow linear cartesian trajectory
- waypoint trajectory
- trajectory parallel to xy world plane
- box on workspace, trajectory will go over it
- cylinder to ee (not working properly)