raspiext: Difference between revisions

From GCtronic wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:
The ROS workspace is located in <code>~/rosbots_catkin_ws/</code>
The ROS workspace is located in <code>~/rosbots_catkin_ws/</code>


Before starting the e-puck2 ROS node, issue the following commands:
Before starting the e-puck2 ROS node on the raspberry, issue the following commands:
* <code>export ROS_IP=raspberry-ip</code>
* <code>export ROS_IP=raspberry-ip</code>
* <code>export ROS_MASTER_URI=http://pc-ip:11311
* <code>export ROS_MASTER_URI=http://pc-ip:11311</code>


To start the e-puck2 ROS node issue the command:<br/>
To start the e-puck2 ROS node issue the command:<br/>
Line 22: Line 22:
And then start rviz in another terminal:
And then start rviz in another terminal:
* rviz rviz
* rviz rviz
* open the configuration file you find in the
* open the configuration file named <code>single_epuck_driver_rviz.rviz</code> you find in <code>epuck_driver_cpp/config/</code> directory
 


e-puck2 firmware and selector on position 10...
The e-puck2 robot must be programmed with the following firmware [] and the selector must be placed in position 10.


The last version of the e-puck2 ROS node can be downloaded from the git [].
The last version of the e-puck2 ROS node can be downloaded from the git: <code>git clone -b e-puck2 https://github.com/gctronic/epuck_driver_cpp.git</code>

Revision as of 13:07, 7 November 2018

System

The system can be downloaded from the following link []

user/pw: pi/raspberry
The system starts in console mode, to switch to desktop (LXDE) mode issue the command startx.

ROS

The ROS workspace is located in ~/rosbots_catkin_ws/

Before starting the e-puck2 ROS node on the raspberry, issue the following commands:

To start the e-puck2 ROS node issue the command:
roslaunch epuck_driver_cpp epuck_controller.launch epuck_id:='3000' This launch file will start the e-puck2 node and the camera node.

On the PC side issue the following commands in one terminal:

And then start rviz in another terminal:

  • rviz rviz
  • open the configuration file named single_epuck_driver_rviz.rviz you find in epuck_driver_cpp/config/ directory

The e-puck2 robot must be programmed with the following firmware [] and the selector must be placed in position 10.

The last version of the e-puck2 ROS node can be downloaded from the git: git clone -b e-puck2 https://github.com/gctronic/epuck_driver_cpp.git