Giter VIP home page Giter VIP logo

squid_game's Introduction

Squid_Game

This is the first laboratory work using ROS.


Task

  • I have the third variant, so I made a Squid Game prototype.
  • The game receives the following symbols as input: 'l' and 'r'.
  • If the symbol is similar to a certain symbol of the path, the game returns "Good choice... Let's go to the next one!" and the path that you have made.
  • If the symbol is not similar to a certain symbol of the path, the game returns "You are dead" and shuts down the server node.
  • All right messages are saved in "game_topic" topic.
  • If the path that you have made is similar to the game path, you will receive the message: "You won, little piece of shit!..".

How to play

In the first terminal:

  1. Clone this project.
  2. Go to your project directory.
  3. Build the project using
    catkin_make
  4. You must have a roscore running in order for ROS nodes to communicate. It is launched using the following command
    roscore

In the second terminal

  1. Go to your project directory.
  2. You need to run setup.bash file to add environment variables to your path to allow ROS to function. Run in with the next command
    source devel/setup.bash
  3. Run the server that will process your requests. Use this command
    rosrun first_laboratory_work subscriber

In the third terminal

  1. Use this command to see messages in the topic
    rostopic echo /game_topic

In the fourth terminal

  1. Use this command to call the service to play the game
    rosservice call /path_to_win "turn: ''"
    You have to input your variant of the turn variable in single quotes that are underlined. You have to use 'l' / 'left' or 'r' / 'right'.

squid_game's People

Contributors

rakovandrew avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.