ROS2 Basics in 5 Days: Course Project

I’m having trouble with Section 1 of the Course Project, I keep getting the following error:
AttributeError: type object ‘type’ has no attribute ‘_TYPE_SUPPORT’ This might be a ROS 1 message type but it should be a ROS 2 messagetype. Make sure to source your ROS 2 workspace after your ROS1 workspace.

I’ve followed the steps:

  • Shell 1 (copied from course notebook):
    source /opt/ros/noetic/setup.bash
    source ~/simulation_ws/devel/setup.bash
    roslaunch realrobotlab main.launch
  • Shell 2 (copied from course notebook):
    source ~/catkin_ws/devel/setup.bash
    roslaunch load_params load_params.launch
    source /opt/ros/foxy/setup.bash
    ros2 run ros1_bridge parameter_bridge

I’ve also tried:
source /opt/ros/noetic/setup.bash
source ~/catkin_ws/devel/setup.bash
roslaunch load_params load_params.launch
source /opt/ros/foxy/setup.bash
ros2 run ros1_bridge parameter_bridge

  • Shell 3 (copied from course notebook):
    source /opt/ros/noetic/setup.bash
    source ~/simulation_ws/devel/setup.bash
    rosrun turtlebot3_teleop turtlebot3_teleop_key
  • Shell 4:
    cd ~
    source /opt/ros/foxy/setup.bash
    cd ~/ros2_ws
    source install/setup.bash
    ros2 launch wall_follower start_wall_following.launch.py

I’ve also tried:

  • Shell 4:
    cd ~
    source /opt/ros/noetic/setup.bash
    source /opt/ros/foxy/setup.bash
    cd ~/ros2_ws
    source install/setup.bash
    ros2 launch wall_follower start_wall_following.launch.py

I’m not sure if it’s something incorrect here or in my wall_following.py/start_wall_following.launch.py/setup.py codes. I’ve tried things I’ve seen on the forum for this issue and nothing seems to work.

Hi @tasiareaj

Do you happen to wait for the gazebo to be completely simulated and then just start with ros bridge?

Or maybe you could try to downland all your files, delete the rosject and start a new project