Skip to content

EEEManchester/corin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Corin - Main Branch

Branch for active development of Corin control code. All other branches of this repo are legacy branches from previous work, and are no longer being actively maintained.

This branch is in early development stages, and thus much of the code will be preliminary.

Running test.py

In order to run any code from this repository the correct conda environment is necessary. This can be created using the environment.yml files distributed with this code.

The corin manager node must be launched first in order to establish communications with the hardware. This is done using the following commands:

sudo bash
conda deactivate
source ~/catkin_ws/devel/setup.bash
roslaunch corin_manager corin_manager.launch

Once the manager node is setup, in a new terminal execute:

source ~/catkin_ws/devel/setup.bash
conda activate Corin2024
python ~/catkin_ws/src/corin/test.py

Using ROS and Conda

The conda environment Corin2024 has been augmented using Rick Staa's Ros Conda Wrapper to allow it to communicate with the ROS install already present on the Corin workstation. This can sometimes be a tense relationship, and the two don't always play nice together. This tension can sometimes manifest as the test script failing to import rospy, or to import bound C++ objects. When this happens, deactivate all conda environments in that terminal (including base) and then re-run:

source ~/catkin_ws/devel/setup.bash
conda activate Corin2024

and then run the test script, which should execute without issue.