Skip to content

Instantly share code, notes, and snippets.

View Akashleena's full-sized avatar

Aleena Akashleena

View GitHub Profile
public class HomicidalChauffeurPursuit : MonoBehaviour
{
public List<float> angles = new List<float>();
public float angle;
public float angleDiff;
public static object phiThetaHistory(object X)
{
// var angles = np.arctan2(X[":",4] - X[":",1], X[":",3] - X[":",0]);
angles = Mathf.Atan((X[":",4] - X[":",1])/(X[":",3]-X[":",0]))
@Akashleena
Akashleena / rrt_star_global_planner_node.cpp
Last active November 15, 2021 10:15
Segmentation fault in line number 404
#include <rrt_star_global_planner_node.hpp>
#include<nav_msgs/OccupancyGrid.h>
#include <iostream>
#include <random>
#include <costmap_2d/costmap_2d_ros.h>
#include <costmap_2d/costmap_2d.h>
#include<nav_msgs/Path.h>//to use nav_msgs/path
using namespace std;
@Akashleena
Akashleena / gist:4aae94f8319066a0014b9846a1cabeae
Created September 23, 2021 05:28
Building ROS Melodic with python3 support
# quick gist to accompany post on building ROS Melodic w/python3 support
# https://www.miguelalonsojr.com/blog/robotics/ros/python3/2019/08/20/ros-melodic-python-3-build.html
# Warning: don't try to run this as a script. It probably won't work.
# remove all things python (optional)
sudo apt-get remove python-*
# remove previous installations of ROS
sudo apt-get remove ros-*
sudo apt-get remove ros-melodic-*
@Akashleena
Akashleena / RosPublisherExample.cs
Created August 26, 2021 07:05
publish pos_rot message of a cube from Unity3D to ROS side but convert the co-ordinate frame and then publish the message so that Gazebo and Unity simulation looks exactly identical
using UnityEngine;
using Unity.Robotics.ROSTCPConnector;
using RosMessageTypes.UnityRoboticsDemo;
using Unity.Robotics.ROSTCPConnector.ROSGeometry;
using Unity.Robotics.UrdfImporter;
using RosMessageTypes.Geometry;
/// <summary>
///
/// </summary>
public class RosPublisherExample : MonoBehaviour
@Akashleena
Akashleena / PY0101EN-1-1-Types.ipynb
Created November 18, 2020 19:43
Created on Skills Network Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Akashleena
Akashleena / zmq_plugin.cpp
Created May 18, 2020 13:21
gazebo plugin implement zmq pub sub
/// \brief socket_com.cpp : Definition of SocketCom Class
#include <atomic>
#include <csignal>
#include <iostream>
#include <chrono>
#include <string>
#include <thread>
#include "socket_com.hpp"