How to change the position of base link of the robot?
- Dominant language
- C++
- Stars
- 480
- Forks
- 92
- PR merge metrics
- No merged PRs in 30d
Description
I want the robot to be placed at a specific position in the environment so that I can manually build the world around it using `vamp.Environment()`. I tried modifying the URDF file, but it doesn't seem to affect the robot's interpreted position in the code. Specifically, I want the robot to be located at a particular position in the environment, for example, pos: [1.0, 0.0, 0.0], when I initiate it with `vamp.ur5`.
The PyBullet simulation uses the URDF file, so I was able to change the robot's location by modifying the origin of the `base_link` in the URDF. However, the vamp module seems to be using the robot's original spawn location from the URDF, despite my changes.
In the code below, I have modified the provided URDF to spawn the UR5e at the origin. Although PyBullet loads the URDF correctly, the robot_module still interprets the robot as being at the old location:
```
robot_urdf_path = 'resources/ur5/ur5.urdf'
sim = vpb.PyBulletSimulator(robot_urdf_path, vamp.ROBOT_JOINTS['ur5'], True)
robot_module = vamp.configure_robot_and_planner_with_kwargs('ur5', 'rrtc')[0]
curr_config = robot_module.Configuration().to_list()
collision_spheres = robot_module.fk(curr_config)
for sphere in collision_spheres:
sim.add_sphere(sphere.r, [sphere.x, sphere.y, sphere.z])
time.sleep(60)
```

How do I make the code interpret robot at the location I want?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.