qiayuanl / legged_control

Nonlinear MPC and WBC framework for legged robot based on OCS2 and ros-controls
BSD 3-Clause "New" or "Revised" License
854 stars 217 forks source link

Unable to load robot model (dae files) in Rviz #52

Closed lucasbrodo closed 10 months ago

lucasbrodo commented 10 months ago

Hi, I'm getting this error (: Could not load resource [/home/lucas/legged_control_ws/src/legged_control/legged_examples/legged_unitree/legged_unitree_description/meshes/go1/calf.dae]: Unable to open file "/home/lucas/legged_control_ws/src/legged_control/legged_examples/legged_unitree/legged_unitree_description/meshes/go1/calf.dae") when trying to load legged_robot_description in Rviz. The files are correctly present in the meshes/go1 folder.

image

Thanks for your help !

lucasbrodo commented 10 months ago

Solved it, had to put file:// in in robot.xacro

mitsui29 commented 9 months ago

hey, i got the same problem with u. but i think this line u mentioned here, it has been added to the robot.xacro, but i still got the same problem. Do u have some ideas?thx a lot! 2023-11-04 01-31-13 的屏幕截图

lucasbrodo commented 9 months ago

Hey @mitsui29 sorry for my late answer, have you solved your problem ?

mitsui29 commented 9 months ago

Hey @mitsui29 sorry for my late answer, have you solved your problem ?

Thanks for replying! I still have this issue

lucasbrodo commented 9 months ago

image This is the file you should have. Then make sure the frame in rviz is odom not base (see issue #47)

Hope it helps.

lucasbrodo commented 9 months ago

Also make sure to activate the controller :

rosservice call /controller_manager/switch_controller "start_controllers: ['controllers/legged_controller']                   
stop_controllers: ['']
strictness: 0
start_asap: false
timeout: 0.0"