Roslaunch SP1s display.launch MODEL:=URDF/SP1S.URDF instructions from the Web page:
http://blog.csdn.net/crazyquhezheng/article/details/42840955
This is the start of the SP1s package under the Urdf file, Roslaunch folder under the Display.launch and URDF files, urdf file geometry length is meters:
<launch> <arg name= "model"/> <arg name= "gui" default= "False"/> <param name= "robot _description "textfile=" $ (arg model) "/> <param name=" Use_gui "value=" $ (arg gui) "/> <node name=" Jo Int_state_publisher "pkg=" Joint_state_publisher "type=" Joint_state_publisher "/> <node name=" Robot_state_publ Isher "pkg=" Robot_state_publisher "type=" State_publisher "/> <node name=" Rviz "pkg=" Rviz "type=" Rviz "args="-D $ (Find urdf_tutorial)/urdf.rviz "required=" true "/> </launch>
<?xml version= "1.0"?> <robot name= "SP1s" > <link name= "Base_link" > <visual> < ;geometry> <box size= "0.27.003"/> </geometry> <material name= "White" > <color rgba= "1 1 1.5"/> </material> </visual> </link> </ROBOT&G T Roslaunch sp1s display.launch model:= ' $ (find SP1s)/URDF/SP1S.URDF ' Remember to open it with this command, only in Indigo's Ros version