Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3675264
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:57:17+00:00 2026-05-19T02:57:17+00:00

I am writing a program to control a mobile robot. One of the things

  • 0

I am writing a program to control a mobile robot. One of the things it has to do is to draw a map of the “world” as the robot senses it and apply changes in the map as it senses them.
It also has to highlight in some way the location of the robot and (ideally) the direction it points to.

I currently have an auto-updating array (100 x150) representing the map, using the following representations: 0 represents a clear path, 1 represents an obstacle.
I also have a variable containing the robot’s location and next location.

What I need is to visualize it. I thought about using labels, but it is way too tedious using them, and the end result is not so pretty. My other possibility is to write all that data into an Excel spreadsheet, but then I will be back to square one: visualizing the data in an attractive way. Is there a drawing package of some sort that can do the job?

To sum it up:

Using:

 - int[] MapArray //100 x 150 array representing the robot's world, and the data there is changing.

 - Point[] Locations //Locations[0] is the current location, Locations[1] is the next step.

And I want to draw a map on a Windows Forms application that updates itself in a nice visual manner.

I hope my question is clear enough, don’t hesitate to contact me if not!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T02:57:17+00:00Added an answer on May 19, 2026 at 2:57 am

    Try Code: Drawing a Filled Rectangle on a Form (Visual C#) or something similar.

    Graphics Programming Example Topics


    Just write a couple of cycles which accesses every cell of an array and draws a rectangle on a form according to coords – that’s the simplest way.

    for(int i=0; i<100; i++)
    {
        for(int j=0;j<150;j++)
        {
            <access[i,j] and draw a rectangle with color accordingly to your contents.>
        }
    }
    

    The same for the drawing location.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently writing a remote control program to control a robot on all
I am writing a program which has two panes (via CSplitter ), however I
I am writing a program that will draw a solid along the curve of
I am writing a program in VS 2005 and I wanna control the access
I'm writing a c# application which uses automation to control another program. Naturally that
I am writing a program to control an Iridium modem that communicates with a
I am writing a program to control a flashbulb. The flash fires in response
I'm writing a program that, among other things, needs to display a context menu
I have two graph in my program each one can control a USB camera
I am writing a small Bluetooth-based serial control program to talk to a serial

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.