ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
There are no issues here, all the requested nodes with their parameters are correctly launched (and it's normal that the spawn_turtlebot_model
process end once launched in case you were wondering).
"Nothing happen" because you don't launch the Gazebo GUI (ie. gzclient
), in your nodes you simply have gzserver
.
Look at your main.launch
:
<arg name="gui" default="false"/>
<arg name="headless" value="true"/>
<arg name="stacks" value="$(optenv TURTLEBOT_STACKS hexagons)"/> <!-- circles, hexagons -->
<arg name="3d_sensor" value="$(optenv TURTLEBOT_3D_SENSOR kinect)"/> <!-- kinect, asus_xtion_pro -->
<include file="$(find gazebo_ros)/launch/empty_world.launch">
<arg name="use_sim_time" value="true"/>
<arg name="debug" value="false"/>
<arg name="gui" value="$(arg gui)" />
<arg name="world_name" value="$(find gym_construct)/worlds/maze_loop_brick.world"/>
</include>
If you change <arg name="gui" default="false"/>
to <arg name="gui" default="true"/>
everything should be fine.
Or if you don't want to modify the launch file, you can also run :
roslaunch gym_construct main.launch gui:=true
2 | No.2 Revision |
There are no issues here, all the requested nodes with their parameters are correctly launched (and it's normal that the spawn_turtlebot_model
process end once launched in case you were wondering).
"Nothing happen" because you don't launch the Gazebo GUI (ie. gzclient
), in your nodes you simply have gzserver
.
Look at your main.launch
:
<arg name="paused" value="true"/>
<arg name="gui" default="false"/>
<arg name="headless" value="true"/>
<arg name="stacks" value="$(optenv TURTLEBOT_STACKS hexagons)"/> <!-- circles, hexagons -->
<arg name="3d_sensor" value="$(optenv TURTLEBOT_3D_SENSOR kinect)"/> <!-- kinect, asus_xtion_pro -->
<include file="$(find gazebo_ros)/launch/empty_world.launch">
<arg name="use_sim_time" value="true"/>
<arg name="debug" value="false"/>
<arg name="gui" value="$(arg gui)" />
<arg name="world_name" value="$(find gym_construct)/worlds/maze_loop_brick.world"/>
</include>
If you change <arg name="gui" default="false"/>
to <arg name="gui" default="true"/>
everything should be fine.
Or if you don't want to modify the launch file, you can also run :
roslaunch gym_construct main.launch gui:=true
In addition : you have <arg name="paused" value="true"/>
, eventhough you don't use the arg its default value is false
(if you have to use it and it's set to true
Gazebo will be started on a paused state)