Robotics StackExchange | Archived questions

Rosbridge Websocket Displaying Map Error

Hi all,

I am learning rosbridge to interface my robot via web. I have tried the example provided from RobotWebTools but there is an error while displaying map.

I tried this example: https://github.com/RobotWebTools/ros2djs/blob/develop/examples/continuous.html using python http-server as web server. I did some modification on the js script so it loads from internal file instead of CDN.

The error message: "Exception calling subscribe callback: a bytes-like object is required, not 'str'" (I could not attach image yet because I don't have enough points)

Steps I did: 1. Run the rosbridgeserver rosbridgewebsocket 2. Run turtlebot3gazebo turtlebot3world 3. Run slam-toolbox onlineasyncmapper 4. Run http-server and open the html file in the browser

Is there any tweak that I need to do to overcome the error?

Thank you.

ROS version: ROS2 Humble Rosbridge package repo: https://github.com/RobotWebTools/ros2djs OS: Ubuntu 22.04

Asked by AlfonGio on 2023-05-31 04:26:56 UTC

Comments

Answers