Script em python do talker para ROS1
Script em python do listener para ROS2
$ mkdir -p ~/tp3_fund_ros
$ initros1
$ roscore
$ initros1
$ mkdir -p ~/tp3_fund_ros/catkin_ws/src
$ cd ~/tp3_fund_ros/catkin_ws/src
$ catkin_init_workspace
$ cd ~/tp3_fund_ros/catkin_ws
$ catkin_make
$ echo "source ~/tp3_fund_ros/catkin_ws/devel/setup.bash" >> ~/.bashrc
$ source ~/.bashrc
$ echo $ROS_PACKAGE_PATH
$ cd ~/tp3_fund_ros/catkin_ws/src
$ catkin_create_pkg ros1_talker rospy geometry_msgs
$ cd ~/tp3_fund_ros/catkin_ws/src/ros1_talker/src
$ gedit talker.py
$ chmod +x talker.py
$ cd ~/tp3_fund_ros/catkin_ws
$ catkin_make
$ source devel/setup.bash
$ rosrun ros1_talker talker.py
$ initros2
$ sudo apt install python3-colcon-common-extensions
$ mkdir -p ~/tp3_fund_ros/ros2_ws/src
$ cd ~/tp3_fund_ros/ros2_ws/src
$ ros2 pkg create --build-type ament_python --node-name ros2_node_subs ros2_package_subs
$ cd ~/tp3_fund_ros/ros2_ws
$ colcon build
$ cd ~/tp3_fund_ros/ros2_ws/src/ros2_package_subs/ros2_package_subs/
$ gedit ros2_node_subs.py
$ cd ~/tp3_fund_ros/ros2_ws
$ colcon build
$ . install/local_setup.bash
$ ros2 run ros2_package_subs ros2_node_subs
$ initros2
$ sudo apt install ros-foxy-ros1-bridge
$ colcon build --symlink-install --packages-select ros1_bridge --cmake-force-configure
$ export ROS_MASTER_URI=http://localhost:11311
$ ros2 run ros1_bridge dynamic_bridge
$ initros1
$ roscore
$ initros1
$ cd ~/tp3_fund_ros/catkin_ws/
$ source devel/setup.bash
$ rosrun ros1_talker talker.py
$ initros2
$ export ROS_MASTER_URI=http://localhost:11311
$ ros2 run ros1_bridge dynamic_bridge
$ initros2
$ cd ~/tp3_fund_ros/ros2_ws/
$ . install/local_setup.bash
$ ros2 run ros2_package_subs ros2_node_subs
$ initros1
$ rosrun rqt_graph rqt_graph
$ initros2
$ ros2 run rqt_graph rqt_graph
$ initros2
$ ros2 run turtlesim turtlesim_node