Examples on how to make yuor ROS2-Kafka bridges.
- Download Confluent and unpack it somewhere
- install kafka-python with: pip3 instal kafka-python
- Might need bson: sudo pip install pymongo
- export PATH=/path-to-confluent/bin:$PATH
- Make sure that you have java 1.8
- If not java 1.8, install it and change to it with: sudo update-alternatives –config java
- confluent start
An issue with ros2 launch exists for this package, so avoid ros2 launch if you see this message. Or, make a bash script for launching.
- Joined demo:
- ros2 launch ros2_kafka_bridge double_kafka_pro_con
- ros2 launch ros2_kafka_bridge double_ros2_pub_sub
- ros2 launch ros2_kafka_bridge double_ros2_kafka_bridge
- Separated demo: run all scripts w/ a 'separated' tag