IE-482-582 / fall2019

Course materials for the Fall 2019 semester of IE 482/582
8 stars 6 forks source link

WanderBot range_ahead.py datatype error #10

Open Bandreu1006 opened 5 years ago

Bandreu1006 commented 5 years ago

I have been trying to manipulate the range_ahead.py script in order to print the messages of different message types. Instead of using sensor_msgs/LaserScan i tried importing sensor_msgs/Range but when i try to execute the script importing Range.msg messages, the Gazebo terminal gives me an error about conflicting datatypes. My assumption is that Gazebo can only accept LaserScan messages or messages with a similar datatype? How would i be able to change what messages or datatypes Gazebo depends on?

This is the error I've been recieving:

[ERROR] [1569164344.137150781, 444.960000000]: Client [/range] wants topic /scan to have datatype/md5sum [sensor_msgs/Range/c005c34273dc426c67a020a87bc24148], but our version has [sensor_msgs/LaserScan/90c7ef2dc6895d81024acba2ac42f369]. Dropping connection.

Below are my scripts as textfiles:

range_ahead.txt sensor_range.txt