Can't bridge CORE2 to RPi 3 on CORE2-ROS

Hello, I have the same issue as these people:

The RPi 3 is up-to-date and I’ve flashed my own code to the CORE2 and standard template code, but in both occasions after executing

/opt/husarion/tools/rpi-linux/ros-core2-client /dev/ttyCORE2

it shows

[ERROR] [1556010329.448520]: Unable to sync with device; possible link problem or link software version mismatch such as hydro rosserial_python with groovy Arduino

I’ve tried it with both CORE2-ROS I have

So I’ve fixed it myself I guess, I put RPi.init(500000); as the first thing in my hMain function. Now the initializing code in hMain looks like:

RPi.init(500000);
platform.begin(&RPi);
nh.getHardware()->initWithDevice(&platform.LocalSerial);
nh.initNode();

Hi M11,

Here you can find tutorial how publish data from CORE2 to ROS. But it use USB port instead of RPi connector. Your modification solving this problem.

ROSbot default firmware doesn’t work because you probably have these settings:

// Uncomment one of these lines, accordingly to range sensor type of your ROSbot
// If you have version with infared sensor:
// static const SensorType sensor_type = SENSOR_INFRARED;
// If you have version with laser sensor:
static const SensorType sensor_type = SENSOR_LASER;
// If you want to use your own sensor:
// static const SensorType sensor_type = NO_DISTANCE_SENSOR;

// Uncomment one of these lines, accordingly to IMU sensor type of your device
// If you have version with MPU9250:
static const ImuType imu_type = MPU9250;
// If you want to use your own sensor:
// static const ImuType imu_type = NO_IMU;

You probably don’t have IMU so program get stuck during IMU initialization.

Best regards,
Hubert