Robotics StackExchange | Archived questions

Robot not visible in Gazebo after spawned successfully

The Command I used to spawn the robot

roslaunch myroboturdf spawn_urdf.launch

Terminal Response for the above command:

process[spawnroboturdf-1]: started with pid [4685] the rosdep view is empty: call 'sudo rosdep init' and 'rosdep update' SpawnModel script started [INFO] [1590777968.012387, 0.000000]: Loading model XML from ros parameter [INFO] [1590777968.013665, 0.000000]: Waiting for service /gazebo/spawnurdfmodel [INFO] [1590777968.015430, 0.000000]: Calling service /gazebo/spawnurdfmodel [INFO] [1590777968.201708, 137.388000]: Spawn status: SpawnModel: Successfully spawned entity [spawnroboturdf-1] process has finished cleanly log file: /home/user/.ros/log/419a060e-a1dc-11ea-a6c2-0ef9f7b9d029/spawnroboturdf-1*.log all processes on machine have died, roslaunch will exit shutting down processing monitor... ... shutting down processing monitor complete done

Gazebo Response: Gazebo says that my Robot has been inserted, but I am not able to see anything.

My urdf file is below:

Can anyone please let me know what I am supposed to do for this ??

NOTE: I am using Ubuntu 16.04 + ROS Kinetic + Gazebo 7

Asked by saran pn on 2020-05-29 14:06:22 UTC

Comments

Answers

Hello,

In a quick read of your URDF this line looks wrong:

for two reasons:

  • You need to write the absolute path which means you need to add something else to your path /home/<your username>/simulation_ws/src/my_robot_urdf/launch/Nim...
  • Spaces in a path are not a good idea. Use _ or -.

Asked by ahcorde on 2020-06-01 09:40:41 UTC

Comments