Giter VIP home page Giter VIP logo

hlvs_player's Introduction

Humanoid League Virtual Season Player

Build and Test (rolling)

Introduction

This repository provides a ROS 2 package named hlvs_player that can be used to communicate with the Webots server while using the Player/Client API for the Humanoid League Virtual Season.

It requests and receives sensor data (specified in the src/hlvs_player/resources/devices.json) over specific topics and subscribes to actuator command messages(only position control available at the moment). Node hlvs_player is responsible for these operations.

This node is currently available only for ROS 2.

Configuration

The package comes with the default configuration for a Darwin-OP robot, but you can easily change it to your robot. The resources/devices.json contains the definition of the devices (sensors and actuators). You can set the used network configuration and the ROS topic names via ROS parameters (see launch/example.launch). Remember to rebuild the package after changing the json file.

Usage

Source your ROS 2 installation:

source /opt/ros/rolling/setup.bash  # Replace "rolling" with your distro

In your ROS 2 workspace, clone the repository:

git clone https://github.com/ros-sports/hlvs_player.git src/hlvs_player

Install dependencies:

rosdep install --from-paths src --ignore-src --default-yes

Build the package:

colcon build

Open a new terminal and source your overlay using:

source install/local_setup.bash

Run the node using one of these commands:

# Replace host and port with appropriate values
ros2 run hlvs_player hlvs_player --ros-args -p host:="127.0.0.1" -p port:=10001
ros2 launch hlvs_player example.launch

Now you can access sensor data and publish commands to be performed on the robot.

hlvs_player's People

Contributors

flova avatar ijnek avatar jgueldenstein avatar sammyramone avatar soheilkhatibi 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.