Wiimote Package Installation in ROS2 FOXY has unexpected Nodes
On Ubuntu 20.04 x86_64 debian FOXY installation.
ROS_VERSION=2
ROS_PYTHON_VERSION=3
ROS_LOCALHOST_ONLY=0
ROS_DISTRO=foxy,
Did the requisite sudo apt update and upgrade
commands and . .bashrc
that sources /opt/ros/foxy/share
before continuing with the installation. There is no src Wiimote package.
Installed wiimote
package with sudo apt install ros-foxy-wiimote
results in "newest version (3.0.1-1focal.20220204.180410)."
ros2 pkg list|grep wiimote
lists:
wiimote
wiimote_msgs
ros2 pkg prefix wiimote
report: /opt/ros/foxy
ros2 pkg executables wiimote
report:
wiimote feedback_tester.py
wiimote teleop_wiimote_node
wiimote wiimote_node
However, these are not the expected node executables in the ros-drivers/joystick_drivers/wiimote
(foxy-devel
) repository, which are teleop_wiimote
and wiimote_controller
Running ros2 run wiimote teleop_wiimote_node
connects to the Wiimote Controller reporting
[INFO] [1645562561.132769206] [teleop_wiimote]: TeleopWiimote lifecycle node created.
ros2 node list
:
/teleop_wiimote
/wiimote
ros2 topic list
:
/parameter_events
/roost
/teleop_wiimote/transition_event
/wiimote/transition_event
However there is no /cmd_vel
topic to Publish the desired Twist
messages
As a check of the Package code, I performed a similar Debian installation of the ROS Noetic Wiimote package on another ROS=1 Ubuntu 20.04 that works consistent with the Wiimote repository containing wiimote_controller
node that connects to the Wiimote controller and has a teleop_wiimote
node that publishes /cmd_vel
.
I also tried a colcon_ws/src
compile of the package that behaved with unexpected nodes as I observed as described here with the Debian installation.
Appreciate any suggested diagnostic steps.
Have you installed
sudo apt install ros-foxy-wiimote-msgs
Not sure it will make a difference.Yes, it was also installed with ros-foxy-wiimote , the newest version (3.0.1focal.20220201.012424). Running ~: ros2 pkg list|grep wiimote lists wiimote and wiimote_msgs packages installed in /opt/ros/foxy.