Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect users to the ROS-Sports repo #5

Merged
merged 3 commits into from
Jan 3, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update README.md
Flova authored Jan 1, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit b24cb6f9d21f5d938693b840ca986d34e15d83d3
45 changes: 2 additions & 43 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,44 +1,3 @@
# v-hsc-ros-bridge
# IMPORTANT

## Introduction
This repository provides a ROS package named `ros_bridge` that can be used to communicate with the Webots server while using the Player/Client API.

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

This node is currently available only for ROS 2.

## Usage

Clone the repository:

`git clone https://github.com/robocup-hl-tc/v-hsc-ros-bridge.git`

To access to the ROS2 commands in a bash, source ROS with this command:

`source /opt/ros/$ROS_DISTRO/setup.bash`

(replace $ROS_DISTRO with your ROS distribution, e.g. foxy)

Move to the repository:

`cd v-hsc-ros-bridge`

You can install the dependencies using:

`rosdep install -i --from-path src --rosdistro foxy -y`

build the package with this command:

`colcon build`

In the root of the repository, source your overlay using:

`. install/local_setup.bash`

Run the node using this command:

`ros2 run ros_bridge webots_controller --ros-args -p host:="127.0.0.1" -p port:=10001`

(you can replace host and port with your preferred ones)

Done, now you can access sensor data and publish commands to be performed on the robot.
This repository moved to https://github.com/ros-sports/hlvs_player!