Ask Your Question

Revision history [back]

nav2d exploration with turtlebot and lidar: no map available

Hey guys, we have a project at our university for a autonomous SLAM Turtlebot2 with a Lidar A2 Laserscanner by slamtec. We tried the nav2d_tutorials and the tutorial3 is our perfect setup. its working perfectly in the simulator, but for the next step we need to combine all the nodes of the tutorial3 with the rplidar and turtlebot node.

This is the edited tutorial3.launch:

<launch>
<!--1.  Kommando zum Starten der ersten Map rosservice call /StartMapping -->
<!--2.  Kommando zum Starten des rumfahrens rosservice call /StartExploration -->

<!-- Some general parameters -->
<rosparam file="$(find nav2d_tutorials)/param/ros.yaml"/> <!-- Start the Operator to control the simulated robot --> <node name="Operator" pkg="nav2d_operator" type="operator" > <remap from="/cmd_vel" to="/mobile_base/commands/velocity" /> <rosparam file="$(find nav2d_tutorials)/param/operator.yaml"/>
<rosparam file="$(find nav2d_tutorials)/param/costmap.yaml" ns="local_map" /> </node> <!-- Start Mapper to genreate map from laser scans --> <node name="Mapper" pkg="nav2d_karto" type="mapper"> <rosparam file="$(find nav2d_tutorials)/param/mapper.yaml"/>
</node>

<!-- Start the Navigator to move the robot autonomously -->
<node name="Navigator" pkg="nav2d_navigator" type="navigator">
<rosparam file="$(find nav2d_tutorials)/param/navigator.yaml"/> </node> <node name="Explore" pkg="nav2d_navigator" type="explore_client" /> <node name="SetGoal" pkg="nav2d_navigator" type="set_goal_client" /> <!-- Start the joystick-driver and remote-controller for operation--> <node name="Joystick" pkg="joy" type="joy_node" /> <node name="Remote" pkg="nav2d_remote" type="remote_joy" /> <!-- RVIZ to view the visualization --> <node name="RVIZ" pkg="rviz" type="rviz" args=" -d$(find nav2d_tutorials)/param/tutorial3.rviz" />


</launch>

The simulator node is removed and instead, we launch the turtlebot_bringup minimal.launch. For the Lidar Scanner results we are starting the rplidar node of robopeak. The /scan topic is also providing LaserScan Messages. These two nodes are started on a raspberry pi on the turtlebot. The rest is started on a workstation (roscore also on the pi and the workstations ROS_MASTER_URI points to the pi).

So the problem is, somehow the karo mapper cant create a map and therefore the robot cant start exploring. With the StartMapping Call the turtlebot makes his initial position finding, but the map is not created and therefore the exploration wont work. Rviz says no map provided.

The params files are still the same of the tutorial3. This is the rosgraph of our setting:

We also tried to remap the /scan topic to /base_scan, but it wasnt working.

Can anybody help us with this problem?

 2 None jayess 5047 ●17 ●55 ●69

nav2d exploration with turtlebot and lidar: no map available

Hey guys, we have a project at our university for a autonomous SLAM Turtlebot2 with a Lidar A2 Laserscanner by slamtec. We tried the nav2d_tutorials and the tutorial3 is our perfect setup. its working perfectly in the simulator, but for the next step we need to combine all the nodes of the tutorial3 with the rplidar and turtlebot node.

This is the edited tutorial3.launch:

<launch>
<!--1.  Kommando zum Starten der ersten Map rosservice call /StartMapping -->
<!--2.  Kommando zum Starten des rumfahrens rosservice call /StartExploration -->

<!-- Some general parameters -->
<rosparam file="$(find nav2d_tutorials)/param/ros.yaml"/> <!-- Start the Operator to control the simulated robot --> <node name="Operator" pkg="nav2d_operator" type="operator" > <remap from="/cmd_vel" to="/mobile_base/commands/velocity" /> <rosparam file="$(find nav2d_tutorials)/param/operator.yaml"/>
<rosparam file="$(find nav2d_tutorials)/param/costmap.yaml" ns="local_map" /> </node> <!-- Start Mapper to genreate map from laser scans --> <node name="Mapper" pkg="nav2d_karto" type="mapper"> <rosparam file="$(find nav2d_tutorials)/param/mapper.yaml"/>
</node>

<!-- Start the Navigator to move the robot autonomously -->
<node name="Navigator" pkg="nav2d_navigator" type="navigator">
<rosparam file="$(find nav2d_tutorials)/param/navigator.yaml"/> </node> <node name="Explore" pkg="nav2d_navigator" type="explore_client" /> <node name="SetGoal" pkg="nav2d_navigator" type="set_goal_client" /> <!-- Start the joystick-driver and remote-controller for operation--> <node name="Joystick" pkg="joy" type="joy_node" /> <node name="Remote" pkg="nav2d_remote" type="remote_joy" /> <!-- RVIZ to view the visualization --> <node name="RVIZ" pkg="rviz" type="rviz" args=" -d$(find nav2d_tutorials)/param/tutorial3.rviz" />
</launch>


</launch>

The simulator node is removed and instead, we launch the turtlebot_bringup minimal.launch. For the Lidar Scanner results we are starting the rplidar node of robopeak. The /scan topic is also providing LaserScan Messages. These two nodes are started on a raspberry pi on the turtlebot. The rest is started on a workstation (roscore also on the pi and the workstations ROS_MASTER_URI points to the pi).

So the problem is, somehow the karo mapper cant create a map and therefore the robot cant start exploring. With the StartMapping Call the turtlebot makes his initial position finding, but the map is not created and therefore the exploration wont work. Rviz says no map provided.

The params files are still the same of the tutorial3. This is the rosgraph of our setting:

We also tried to remap the /scan topic to /base_scan, but it wasnt working.

Can anybody help us with this problem?

nav2d exploration with turtlebot and lidar: no map available

Hey guys, we have a project at our university for a autonomous SLAM Turtlebot2 with a Lidar A2 Laserscanner by slamtec. We tried the nav2d_tutorials and the tutorial3 is our perfect setup. its working perfectly in the simulator, but for the next step we need to combine all the nodes of the tutorial3 with the rplidar and turtlebot node.

This is the edited tutorial3.launch:

<launch>
<!--1.  Kommando zum Starten der ersten Map rosservice call /StartMapping -->
<!--2.  Kommando zum Starten des rumfahrens rosservice call /StartExploration -->

<!-- Some general parameters -->
<rosparam file="$(find nav2d_tutorials)/param/ros.yaml"/> <!-- Start the Operator to control the simulated robot --> <node name="Operator" pkg="nav2d_operator" type="operator" > <remap from="/cmd_vel" to="/mobile_base/commands/velocity" /> <rosparam file="$(find nav2d_tutorials)/param/operator.yaml"/>
<rosparam file="$(find nav2d_tutorials)/param/costmap.yaml" ns="local_map" /> </node> <!-- Start Mapper to genreate map from laser scans --> <node name="Mapper" pkg="nav2d_karto" type="mapper"> <rosparam file="$(find nav2d_tutorials)/param/mapper.yaml"/>
</node>

<!-- Start the Navigator to move the robot autonomously -->
<node name="Navigator" pkg="nav2d_navigator" type="navigator">
<rosparam file="$(find nav2d_tutorials)/param/navigator.yaml"/> </node> <node name="Explore" pkg="nav2d_navigator" type="explore_client" /> <node name="SetGoal" pkg="nav2d_navigator" type="set_goal_client" /> <!-- Start the joystick-driver and remote-controller for operation--> <node name="Joystick" pkg="joy" type="joy_node" /> <node name="Remote" pkg="nav2d_remote" type="remote_joy" /> <!-- RVIZ to view the visualization --> <node name="RVIZ" pkg="rviz" type="rviz" args=" -d$(find nav2d_tutorials)/param/tutorial3.rviz" />
</launch>


The simulator node is removed and instead, we launch the turtlebot_bringup minimal.launch. For the Lidar Scanner results we are starting the rplidar node of robopeak. The /scan topic is also providing LaserScan Messages. These two nodes are started on a raspberry pi on the turtlebot. The rest is started on a workstation (roscore also on the pi and the workstations ROS_MASTER_URI points to the pi).

So the problem is, somehow the karo mapper cant create a map and therefore the robot cant start exploring. With the StartMapping Call the turtlebot makes his initial position finding, but the map is not created and therefore the exploration wont work. Rviz says no map provided.

The params files are still the same of the tutorial3. This is the rosgraph of our setting:

We also tried to remap the /scan topic to /base_scan, but it wasnt working.

Can anybody help us with this problem?