Ask Your Question
0

Create a 2d map to place a robot

asked 2015-11-09 22:43:15 -0500

danm gravatar image

Hello. I'm an absolute begginer. Read a while back the book "A gentle introdution to ROS". I need do draw a 2d labyrinth and place a robot, like turtlesim to implement some intelligence and make it move. How can I do it? Can I replace the backgoung of turtlesim with a .png image and make the turtlesim_node detect a colision with a wall by a color? I read about costmap_2d, but I don't want to make a map, I want to have one where my robot with a collision sensor can move through.

edit retag flag offensive close merge delete

Comments

1

Hi! i think you should star searching about 2d simulators in ROS. Since it seems what you are trying to do is just a simple 2d simulation. Gazebo is the most used simulator in ROS, but is for 3d environments, so you should search some altenatives, and learn how to use them with the wiki.

donmrsir gravatar image donmrsir  ( 2015-11-10 09:37:03 -0500 )edit

You're right. I'm now using stdr_simulator. Thank you

danm gravatar image danm  ( 2015-11-11 12:08:32 -0500 )edit

No problem :D.I will add this comment as an answer then to let other people know that your problem has been solved.

donmrsir gravatar image donmrsir  ( 2015-11-12 04:01:45 -0500 )edit

2 Answers

Sort by » oldest newest most voted
1

answered 2015-11-12 05:46:08 -0500

Mehdi. gravatar image

updated 2015-11-12 05:46:24 -0500

You could start with simulating Turtlebot. For that you have the choice between Gazebo, stage or STDR. I think the simultion should work out of the box so that you can start playing around with the costmap etc.

edit flag offensive delete link more

Comments

turtlebot_simulator seems a good alternative, thank you for mentioning it.

danm gravatar image danm  ( 2015-11-12 08:16:52 -0500 )edit
0

answered 2015-11-12 04:02:14 -0500

donmrsir gravatar image

Hi!

I think you should star searching about 2d simulators in ROS. Since it seems what you are trying to do is just a simple 2d simulation. Gazebo is the most used simulator in ROS, but is for 3d environments, so you should search some altenatives, and learn how to use them with the wiki.

edit flag offensive delete link more

Comments

1

I am now using stdr_simulator for the 2d simulator. Got it customized by looking through the code. Thank you for the reply.

danm gravatar image danm  ( 2015-11-12 08:16:10 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-11-09 22:43:15 -0500

Seen: 1,089 times

Last updated: Nov 12 '15