Giter Club home page Giter Club logo

blue_simulator's Introduction

Robotic Systems Simulated in Webots

Dependencies

This simulator was developed using Webots 2023a. Additionally, the ROS version is Noetic, which can be downloaded from Noetic.

The developed package has the following dependencies, which must be included in the ROS working space: webots_ros and ackermann_msgs.

Finally, the project includes an installation file to include all necessary dependencies for Python and ROS, defined as follows:

chmod +x install_python.sh
./install_python.sh

The WEBOTS_HOME environment variable must be set to the installation folder of Webots.

export WEBOTS_HOME=/usr/local/webots

Ros Workspace

Create the following ROS workspace

mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/

Inside the ROS workspace /src must be included: webots_ros and ackermann_msgs.

Due to the python3 is necessary to configure the catkin workspace as follows:

catkin_make -DPYTHON_EXECUTABLE=/usr/bin/python3

Before continuing source your new setup.*sh file:

source devel/setup.bash

Blue Robot

To run the simulator using Blue Robot, execute the following command:

roslaunch blue_simulator simulator_webots.launch

Photovoltaic Array Inspection

To run the simulator considering photovoltaic arrays and aerial vehicle, execute the following command:

roslaunch blue_simulator  thermal.launch

Robot Manipulator

To run the simulator considering a 6 DOF manipulator robot (DOBOT CR3), execute the following command:

roslaunch blue_simulator cr3_simulation.launch

Docker

To facilitate the installation and use of the simulator, it can be built with a docker with the following instructions

Clone the repository

mkdir ~/webot-blue
cd ~/webot-blue/
git clone https://github.com/lfrecalde1/blue_simulator.git
cd ~/webot-blue/blue_simulator

Build the docker image

sudo docker build -t webots-blue . 

Run the container

sudo docker run --shm-size=1g --ulimit memlock=-1 --ulimit stack=67108864 --rm -it --net=host -e DISPLAY=$DISPLAY --user=$(id -u $USER):$(id -g $USER) --name webots-blue-container --gpus all --cpuset-cpus="0-2" webots-blue

Note:

  • The docker image is based from nvidia/cuda:11.8.0-base-ubuntu20.04. It also has Webots R2023a and ROS Noetic.
  • When launching the container, it is specified that all graphics and 3 cpu cores will be used.

blue_simulator's People

Contributors

lfrecalde1 avatar epvelasco avatar

Stargazers

Poppy avatar XHY avatar  avatar

Watchers

 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.