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

No reading from IR and bumper sensors #1010

Open
5 of 24 tasks
elimas9 opened this issue Feb 19, 2024 · 1 comment
Open
5 of 24 tasks

No reading from IR and bumper sensors #1010

elimas9 opened this issue Feb 19, 2024 · 1 comment

Comments

@elimas9
Copy link

elimas9 commented Feb 19, 2024

ISSUE TEMPLATE ver. 0.4.0

  1. Which TurtleBot3 platform do you use?

    • Burger
    • Waffle
    • Waffle Pi
  2. Which ROS is working with TurtleBot3?

    • ROS 1 Kinetic Kame
    • ROS 1 Melodic Morenia
    • ROS 1 Noetic Ninjemys
    • ROS 2 Dashing Diademata
    • ROS 2 Eloquent Elusor
    • ROS 2 Foxy Fitzroy
    • ROS 2 Humble
  3. Which SBC(Single Board Computer) is working on TurtleBot3?

    • Intel Joule 570x
    • Raspberry Pi 3B+
    • Raspberry Pi 4
    • etc (Please specify your SBC here)
  4. Which OS you installed on SBC?

    • Raspbian distributed by ROBOTIS
    • Ubuntu MATE (16.04/18.04/20.04)
    • Ubuntu preinstalled server (18.04/20.04)
    • Ubuntu 22.04
  5. Which OS you installed on Remote PC?

    • Ubuntu 16.04 LTS (Xenial Xerus)
    • Ubuntu 18.04 LTS (Bionic Beaver)
    • Ubuntu 20.04 LTS (Focal Fossa)
    • Windows 10
    • MAC OS X (Specify version)
    • Ubuntu 22.04
  6. Specify the software and firmware version(Can be found from Bringup messages)

    • Software version: [x.x.x]
    • Firmware version: [x.x.x]
  7. Specify the commands or instructions to reproduce the issue.

ros2 launch turtlebot3_bringup robot.launch.py
ros2 topic echo /sensor_state

  1. Copy and Paste the error messages on terminal.

IR (cliff) and bumper information is always 0 even tough the sensors are correctly plugged into the OpenCR

  1. Please describe the issue in detail.

After connecting in a correct way the sensors (either IR or bumper) to the OLLO pins of the OpenCR (by following the instructions in https://emanual.robotis.com/docs/en/platform/turtlebot3/additional_sensors/), I launch the turtlebot3 bringup commands and then try to read the output from the sensors in the ros2 topic /sensor_state (respectively the field 'cliff 'and 'bumper'), but the values are always at 0, even if I click the bumper or point the IR to different distances. I uploaded the OpenCR firmware from https://github.com/ROBOTIS-GIT/OpenCR-Binaries/raw/master/turtlebot3/ROS2/latest/opencr_update.tar.bz2 , as explained in section 3.3 of https://emanual.robotis.com/docs/en/platform/turtlebot3/opencr_setup/#opencr-setup (without passing by the Arduino IDE, section 3.4) and the bringup, the lidar, the battery, the encoders, the voltage and all the other sensors work just fine. Do you know to what this problem could be due and how to solve it?
Thank you very much in advance!

@shiba-8ro
Copy link

That documentation is very old and was created during the ROS 1 Kinetic era. And unfortunately the instructions to Run ros_serial indicate that it is not compatible with ROS 2.

The way to solve this issue is to modify OpenCR's TB3 FW (Turtlebot3 core), but I cannot provide any specific code. Thanks.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants