No version for distro humble. Known supported distros are highlighted in the buttons above.
No version for distro iron. Known supported distros are highlighted in the buttons above.
No version for distro jazzy. Known supported distros are highlighted in the buttons above.
No version for distro rolling. Known supported distros are highlighted in the buttons above.
wrapyfi_ros_interfaces package from wrapyfi_ros_interfaces repowrapyfi_ros_interfaces |
|
Package Summary
Tags | No category tags. |
Version | 0.4.30 |
License | MIT |
Build type | CATKIN |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/modular-ml/wrapyfi_ros_interfaces.git |
VCS Type | git |
VCS Version | master |
Last Updated | 2024-01-30 |
Dev Status | DEVELOPED |
CI status | Continuous Integration : 0 / 0 |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
The wrapyfi_ros_interfaces package
Additional Links
No additional links.
Maintainers
- Fares Abawi
Authors
No additional authors.
Wrapyfi ROS interfaces
WARNING: These instructions are located in https://github.com/modular-ml/wrapyfi_ros_interfaces
To transmit ROS audio messages with Wrapyfi, you need to compile the ROS interfaces. ROS must already be installed on your system, with all its build dependencies. You can find the installation instructions here or install using Robostack.
Prerequisites
- ROS Noetic
- Python 3.6
Installation
We recommend compiling the Wrapyfi ROS interfaces rather than installing them. However, if ROS was installed locally (not within mamba/micromamba), Then the Wrapyfi interfaces can be installed directly using APT
APT (local Noetic only)
source /opt/ros/noetic/setup.bash
sudo apt update
sudo apt install ros-noetic-wrapyfi-ros-interfaces
# test package: should return the audio message type for ROS
rosmsg show ROSAudioMessage
Compiling
- Copy the
wrapyfi_ros_interfaces
folder to your ROS workspace (assumed to be~/ros_ws
).
# from the current directory
cd ../
cp -r wrapyfi_ros_interfaces ~/ros_ws/src
- Compile the ROS interfaces:
cd ~/ros_ws
catkin_make
**Note**: If the wrong version of Python is used, the compilation will fail. Make sure that the correct version of cmake
is used by modifying the `cmake_minimum_required` version in the `~/ros_ws/src/wrapyfi_ros_interfaces/CMakeLists.txt` file:
# CMakeLists.txt
cmake_minimum_required(VERSION 3.0.2)
# ...
Replacing VERSION 3.0.2 with the correct version of cmake.
- Source the ROS workspace:
source ~/ros_ws/devel/setup.bash
- Verify that the ROS Audio message interface is compiled:
rosmsg show ROSAudioMessage
Which should output:
[wrapyfi_ros_interfaces/ROSAudioMessage]:
std_msgs/Header header
uint32 seq
time stamp
string frame_id
uint32 chunk_size
uint8 channels
uint32 sample_rate
string encoding
uint8 is_bigendian
uint32 bitrate
string coding_format
uint32 step
uint8[] data
- Verify that the ROS Audio service interface is compiled:
rossrv show ROSAudioService
Which should output:
[wrapyfi_ros_interfaces/ROSAudioService]:
string request
---
wrapyfi_ros_interfaces/ROSAudioMessage response
std_msgs/Header header
uint32 seq
time stamp
string frame_id
uint32 chunk_size
uint8 channels
uint32 sample_rate
string encoding
uint8 is_bigendian
uint32 bitrate
string coding_format
uint32 step
uint8[] data
Run your Wrapyfi enabled script from the same terminal. Now you can transmit ROS audio messages in PUB/SUB [\[example\]](https://wrapyfi.readthedocs.io/en/latest/examples/examples.sensors.html#module-examples.sensors.cam_mic) and REQ/REP [\[example\]](https://wrapyfi.readthedocs.io/en/latest/examples/examples.communication_patterns.html#module-examples.communication_patterns.request_reply_example).
CHANGELOG
No CHANGELOG found.
Wiki Tutorials
This package does not provide any links to tutorials in it's rosindex metadata.
You can check on the ROS Wiki Tutorials page for the package.
Package Dependencies
Deps | Name |
---|---|
roscpp | |
rospy | |
std_msgs | |
message_generation | |
catkin | |
message_runtime |
System Dependencies
No direct system dependencies.
Dependant Packages
No known dependants.
Launch files
No launch files found
Messages
Services
Plugins
No plugins found.
Recent questions tagged wrapyfi_ros_interfaces at Robotics Stack Exchange
No version for distro galactic. Known supported distros are highlighted in the buttons above.
No version for distro melodic. Known supported distros are highlighted in the buttons above.