how to edit urdf? #1193
Closed
cho-jang-hyun
started this conversation in
General
Replies: 2 comments
-
Hi @cho-jang-hyun , here are some ideas that may help:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks to your help, I was able to solve the issue. # Get the camera's key
sensor_key = next(iter(robot.sensors)) # "robot:eyes:Camera:0"
# print("sensor_key", sensor_key)
# Get the camera's world position and orientation
pos, ori = robot.sensors[sensor_key].get_position_orientation()
# print("camera_position: ", pos)
# Change the camera's position
robot.sensors[sensor_key].set_position_orientation(position=pos+th.tensor([0.021, 0.0, 0.0])) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
I modified the code to use the Freight robot when running an example from OmniGibson, and executed it with the following command:
After running the example, the Freight's camera does not display anything. I can only view the camera in the viewport by manually moving it with the mouse.
I tried to adjust the camera position by modifying the
<joint name="base_camera_joint" type="fixed">
<origin rpy="0 -0.17453292519943 0" xyz="100.2645 100 100.198" />
infreight.urdf
file, but the changes are not reflected when running the example.How can I resolve this issue?
Screenshots
before moving
after moving
Beta Was this translation helpful? Give feedback.
All reactions