Skip to content

Commit ecf5571

Browse files
committed
(sim) gazebo coordinate frame is now the same as moveit planning frame
1 parent 3230c29 commit ecf5571

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

src/SVD_sim_randomized_launcher.py

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,25 @@
11
#!/usr/bin/env python3
22
import random
33

4-
PREFIX="clear; roslaunch vader_hri vader_svd_dualsim.launch "
4+
PREFIX="clear; roslaunch vader_hri dualsim_noplan.launch "
55

66
def generate_poses():
77
# Generate random pose
88
pose = {
9-
"x": round(random.uniform(0.25, 0.45), 2),
10-
"y": round(random.uniform(-0.45, -0.65), 2),
9+
"x": round(random.uniform(0.45, 0.55), 2), #depth from arm reach
10+
"y": round(random.uniform(0.35, 0.55), 2), #left from x-axis
1111
"z": round(random.uniform(0.4, 0.6), 2),
1212
"roll": round(random.uniform(-0.5, 0.5), 2),
1313
"pitch": round(random.uniform(-0.5, 0.5), 2)
14-
# "x": 0.25,
15-
# "y": -0.6,
16-
# "z": 0.405,
17-
# "roll": 0.4,
18-
# "pitch": 0.1
1914
}
2015

2116
# Below pose should add 1.101 to z, 0.696 to y
2217
pose_gazebo = {
23-
"x": round(0.5-pose["x"], 3),
24-
"y": round(-0.51-pose["y"], 3),
25-
"z": round(pose["z"] + 1.025, 3),
26-
"roll": -pose["pitch"],
27-
"pitch": pose["roll"]
18+
"x": round(pose["x"], 3),
19+
"y": round(pose["y"], 3),
20+
"z": round(pose["z"], 3),
21+
"roll": pose["roll"],
22+
"pitch": pose["pitch"]
2823
}
2924

3025
arg_sim_pepper_pose = f"sim_pepper_pose:=\"{pose['x']} {pose['y']} {pose['z']} {pose['roll']} {pose['pitch']} 0.0\""

0 commit comments

Comments
 (0)