Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Memristor Eurobot Platform based on ROS 2

License

NotificationsYou must be signed in to change notification settings

memristor/mep3

Repository files navigation

Memristor Eurobot Platform based on ROS 2image

Installation

Make sure you haveROS 2 Humble installed and follow the steps below:

# Source ROS 2source /opt/ros/humble/local_setup.bash# Create a workspacemkdir -p~/ros2_ws/srccd~/ros2_wsgit clone git@github.com:memristor/mep3.git src/mep3# On embedded device: touch src/mep3/mep3_simulation/COLCON_IGNORE# Install dependenciessudo apt install python3-vcstool# vcs import src < src/mep3/mep3.reposrosdep updaterosdep install --from-paths src --ignore-src -r# Build the packagescolcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo# Source this workspacesource install/local_setup.bash

⚠️Recommended:Please check alternative installation methodshere.

Bringup

Start the ROS app on a physical robot or a simulation with multiple robots.

Physical

Start the ROS app on SBC (we support Raspberry Pi):

ros2 launch mep3_bringup robot_launch.py bt:=false color:=blue

Important parameters are:

  • namespace: Whether to load a configuration for a big or small robot (can bebig orsmall).
  • color: Team color (can beblue orgreen).
  • bt: Whether to run a behavior tree (can betrue orfalse).
  • strategy: Name of the behavior tree you want run.

Simulation

Start the simulation on a PC:

ros2 launch mep3_bringup simulation_launch.py

Important parameters are:

  • color: Team color (can beblue orgreen).
  • bt: Whether to run a behavior tree (can betrue orfalse).
  • big_strategy: Name of the behavior tree you want run for the big robot.
  • small_strategy: Name of the behavior tree you want run for the small robot.

Demo

Teleoperation

Note

Run simulation without behavior tree

ros2 run teleop_twist_keyboard teleop_twist_keyboard --ros-args -r cmd_vel:=big/cmd_vel

(usei,j,l, and, keys move to the robot)

Visualization & navigation

ros2 launch mep3_bringup rviz_launch.py namespace:=big

(use2D Goal Pose to navigate the robot)

Tips

Live strategies

To iterate quickly on behaviors you can load any strategy that containslive in the name.As soon as any of the files in themep3_behavior/strategies directory is changed the behavior node will reload.

Webots world simulation

Testing

  • Change working directory to~/ros2_ws
  • Run the following command:
    source /opt/ros/humble/local_setup.bashcolcontest --event-handlers console_cohesion+ --return-code-on-test-failure

[8]ページ先頭

©2009-2025 Movatter.jp