Skip to content

Instantly share code, notes, and snippets.

Oleg Kalachev okalachev

Block or report user

Report or block okalachev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@okalachev
okalachev / tree.cpp
Created Dec 12, 2019
Tree game implemented in C++
View tree.cpp
#include <iostream>
#include <string>
using namespace std;
struct Node
{
public:
// Answer constructor
Node(string answer) :
@okalachev
okalachev / publish_statustext
Created Nov 11, 2019
Publishing STATUSTEXT message to PX4 testing (with MAVROS)
View publish_statustext
#!/usr/bin/env bash
rostopic pub --once /mavros/statustext/send mavros_msgs/StatusText "header:
seq: 0
stamp:
secs: 0
nsecs: 0
frame_id: ''
severity: 7
text: 'Debug!'"
View id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6/DRnrPS9as/l8TO0m8uAHV857pxZjrDauLZrZhGvi8VT9Y2NLJmQj4oHiBXRHo+8az0fvwu6qsCT41YxY55OacXI91tFYOW6bHhVo0naMtglrXTs0vVuzoR3UxGLOCC/Mpk3D73RIptfpDxO7deUqHPhNc+RWQlLSkhKwKiIEj8XbWvCBORQW4MrUXYFBZIQuLPCOhQqOPlTw+uqk6Yn30papzcrkEISPHR8tkvHTEn1mIISw0/12vaEiBBDZ6aQ2r/StVb7hQCik72aw8A2Sg6tZpmwFg2032HKsJu0b3r2eEkKM3xnFav+8vJPvodezk2OARz7hIAnzwfh6uox oleg@MacBook-Pro-1.Dlink
@okalachev
okalachev / README.md
Created Aug 27, 2019 — forked from urpylka/README.md
Сборка .deb пакетов из ROS пакетов
View README.md

Сборка debian пакетов из ROS пакетов

Заметка основана на материалах:

  1. https://answers.ros.org/question/173804/generate-deb-from-ros-package/ (кстати, здесь описывается проблема иногда возникающая make[1]: *** [override_dh_auto_configure] Error 2)
  2. https://gist.github.com/awesomebytes/196eab972a94dd8fcdd69adfe3bd1152 (исходная инструкция)
  3. https://github.com/ros-infrastructure/ros_buildfarm/blob/master/doc/custom_rosdistro.rst (статья про использование кастомных зависимостей rosdep в rosbuildfarm)
  4. https://answers.ros.org/question/230104/using-bloom-to-generate-binaries-for-multiple-packages/ (вопрос про билдинг нескольких пакетов)
  5. https://answers.ros.org/question/292024/how-to-use-bloom-generate-with-private-dependencies/ (статья про билдинг с кастомными зависимостями)
  6. https://answers.ros.org/question/280213/generate-deb-from-dependent-res-package-locally/#280235 (исходная статья для предыдущей)
@okalachev
okalachev / double_flip.py
Created May 28, 2019
Double flip on CLEVER
View double_flip.py
import math
import rospy
from clever import srv
from std_srvs.srv import Trigger
from sensor_msgs.msg import Range
from mavros_msgs.srv import SetMode
rospy.init_node('fly')
@okalachev
okalachev / serial_control.py
Created May 13, 2019
mavlink serial control
View serial_control.py
#!/usr/bin/env python
import rospy
from mavros_msgs.msg import Mavlink
from mavros import mavlink
from pymavlink import mavutil
rospy.init_node('serial_data')
rospy.loginfo('Node inited')
View nodelet_template.cpp
#include <ros/ros.h>
#include <nodelet/nodelet.h>
#include <pluginlib/class_list_macros.h>
#include <geometry_msgs/PoseStamped.h>
class Example : public nodelet::Nodelet
{
public:
Example() {}
View sonar.py
# -*- coding: utf-8 -*-
import time
import threading
import pigpio
import collections
import numpy
import rospy
from sensor_msgs.msg import Range
View test.py
import rospy
from clever import srv
from std_srvs.srv import Trigger
rospy.init_node('testflight')
navigate = rospy.ServiceProxy('navigate', srv.Navigate)
land = rospy.ServiceProxy('land', Trigger)
View c-cpp-java-js-swift.cpp
/*
* Description text
* Copyright (C) 2018 Copter Express Technologies
*
* Author: Ivan Petrov <ipetrov@gmail.com>
*
* Distributed under MIT License (available at https://opensource.org/licenses/MIT).
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*/
You can’t perform that action at this time.