source code on jetson nano to control the mobile tank
- runs on an Nvidia Jetson Nano Board
- local repository should run within the catkin workspace of the device (name="ros_ws" -> ros_ws/src)
- features an implementation in cpp and python to control the motors and do the ROS-communication
- connected GPIO-PINS are: [ENA = 33, IN1 = 35, IN2 = 37, ENB = 38, IN3 = 32, IN4 = 36] (directly connect to motor driver L298N)
- compile and run the cpp-file or start main.py
- the tank may be loaded with up to 10kg weight
- the tank my be controlled using a ROS-publisher
- the tank currently executes the move-commands without any safety guarantee
- we currently only use the python implementation, cpp works but is not used anywhere
- install Ubuntu and ROS
- create a catkin workspace (see the steps below)
- clone this repository into the workspace's src directory
- clone other, required repositories into the src directory
- [OPTIONAL] execute "rosdep install -i --from-paths src" from the workspace to install ROS dependencies
- [OPTIONAL] execute "catkin_make" from the workspace to build all packages in the workspace
- mkdir –p ~/catkin_ws/src
- cd ~/catkin_ws/src
- catkin_init_workspace
- cd ~/catkin_ws/
- catkin_make
- source ~/catkin_ws/devel/setup.bash
- echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
- catkin_create_pkg beginner_tutorials std_msgs rospy roscpp
"rosrun motor_control motor_control.py"
- package_name = "motor_control"
- IP-Address: "192.168.48.32"
- to check for connectivity try steps: http://wiki.ros.org/ROS/NetworkSetup