Skip to content

projects/ janelia/

Windows 10

Check for new Windows updates and install all.

https://docs.ros.org/en/dashing/Installation/Windows-Install-Binary.html

Install ROS 2 Dashing Desktop

Install Chocolatey

https://chocolatey.org/

Install ROS 2 and Dependencies

Open PowerShell as administrator.

choco -v
mkdir c:\opt\chocolatey
set PYTHONNOUSERSITE=1
set ChocolateyInstall=c:\opt\chocolatey
choco source add -n=ros-win -s="https://aka.ms/ros/public" --priority=1
choco upgrade ros-dashing-desktop -y --execution-timeout=0
choco install -y git
choco install -y visualstudio2019community

Setup Visual Studio

  • Restart computer.
  • Launch the Visual Studio Installer application from the Start Menu.
  • Click Modify Visual Studio.
  • Select 'Desktop development with C++'
  • Install option with default selections.

Install y_arena_odor_controller_ros

Run Visual Studio and view terminal and set to Developer Command Prompt.

Environment Setup

call C:\opt\ros\dashing\x64\local_setup.bat
set | findstr -i ROS

Create a Workspace and Clone Y-Arena Repository

Use the local ROS source copy as the y_arena_odor_controller_ros folder:

y_arena_odor_controller_ros source files

md \yarena_ws\src
cd \yarena_ws\src

Build the Workspace with Colcon

cd \yarena_ws
colcon build --merge-install

Source Y-Arena Workspace

Open command prompt as non-adminstrator.

call \yarena_ws\install\setup.bat

Test Communications

Check topic list

Check to make sure "/arena_odors" is in the list of available topics.

ros2 topic list

Check multicast

In Terminal 1 on host machine:

ros2 multicast receive

In Terminal 2 on Raspberry Pi:

ros2 multicast send

Troubleshooting

If communications are not working properly, check network connections and settings.

The firewall on the host machine may need to be disabled and multicast may need to be enabled.