Very simple module for YARP reading the output of magnetic tactile sensors via CAN and sending them through a YARP port.
-
Clone this repository to
$SRC
-
Execute the following:
cd $SRC
mkdir build
cd build
cmake ..
make install
- Activate the can interface. Within a terminal type:
sudo ip link set <interface_name> type can bitrate 1000000
sudo ip link set <interface_name>
-
Open the module
Read_magnetic_tactile_sensors
fromYARP manager
. -
The data is available through the port
/magnetic-tactile-sensors/readings:o
as vector ofN * M * 3
integers (yarp::sig::Vector<int>
) whereN
is the number of fingers,M
is the numberof taxel per fingertip and3
is the size of the output of each vector.
A RPC
port /magnetic-tactile-sensors/rpc:i
is available to send command to the MCU
that reads the data from the sensor.