This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// \brief socket_com.cpp : Definition of SocketCom Class | |
#include <atomic> | |
#include <csignal> | |
#include <iostream> | |
#include <chrono> | |
#include <string> | |
#include <thread> | |
#include "socket_com.hpp" |