Skip to content

Instantly share code, notes, and snippets.

View hakuturu583's full-sized avatar
🤖

Masaya Kataoka hakuturu583

🤖
View GitHub Profile
#include "motor.h"
#include "sockets.h"
#include "proto/thruster_command.pb.h"
#include "pb.h"
#include "pb_common.h"
#include "pb_decode.h"
#include "pb_encode.h"
#include "udp.h"
void StartDefaultTask(void const * argument)
repositories:
control/joy_to_twist:
type: git
url: https://github.com/OUXT-Polaris/joy_to_twist.git
version: master
control/usv_controller:
type: git
url: https://github.com/OUXT-Polaris/usv_controller.git
version: master
description/miniv_description:
ScenarioModifiers:
ScenarioModifier: []
OpenSCENARIO:
FileHeader:
revMajor: 1
revMinor: 0
date: '2020-10-23T06:57:33.899Z'
description: Normal Driving at a constant speed with no vehicle in front
author: ''
ParameterDeclarations:
geographic_msgs::GeoPoint NmeaGpsPlugin::convertToGeoPose(double northing,double easting,int zone_id,double altitude)
{
double K0 = 0.9996;
double E = 0.00669438;
double E2 = E*E;
double E3 = E2*E;
double E_P2 = E/(1.0-E);
double SQRT_E = std::sqrt(E);
double _E = (1 - SQRT_E) / (1 + SQRT_E);
double _E2 = _E*_E;
Starting >>> src
[Processing: src]
[Processing: src]
[Processing: src]
[Processing: src]
--- stderr: src
** WARNING ** io features related to openni2 will be disabled
** WARNING ** io features related to pcap will be disabled
** WARNING ** io features related to png will be disabled
** WARNING ** visualization features related to openni2 will be disabled
#!/usr/bin/env node
'use strict';
class RostateMachineViewer
{
constructor(package_dir,target_namespace)
{
this.package_dir = package_dir;
this.target_namespace = target_namespace;
const http = require('http');
@hakuturu583
hakuturu583 / build_nnabla.sh
Last active May 8, 2019 14:57
Build nnabla with CUDA10.0
sudo apt -y install cmake
cd external
wget https://github.com/Kitware/CMake/releases/download/v3.14.3/cmake-3.14.3-Linux-x86_64.tar.gz
tar -xvzf cmake-3.14.3-Linux-x86_64.tar.gz
# Install Nnabla
sudo apt -y install build-essential
sudo apt -y install python python-pip
sudo apt -y install libarchive-dev
sudo apt -y install libhdf5-dev
sudo add-apt-repository ppa:maarten-fonville/protobuf
@hakuturu583
hakuturu583 / CMake
Created February 26, 2019 07:56
autoware_health_checker test fail
if (CATKIN_ENABLE_TESTING)
find_package(rostest REQUIRED)
add_rostest_gtest(test_autoware_health_checker
test/test_autoware_health_checker.test
test/src/test_autoware_health_checker.cpp
${HEALTH_CHECKER_SRC})
target_link_libraries(test_autoware_health_checker
${catkin_LIBRARIES})
endif ()
@hakuturu583
hakuturu583 / CMakeLists.txt
Created June 9, 2018 07:26
catkin_makeしたらdoxygenでドキュメントが生成されるようにする。 ref: https://qiita.com/hakuturu583/items/abe7e0f6997453bc252a
# usv_twist_sensor_plugin
add_library(usv_twist_sensor_plugin
src/usv_twist_sensor_plugin.cc
)
target_link_libraries(usv_twist_sensor_plugin
${catkin_LIBRARIES}
${GAZEBO_LIBRARIES}
${Eigen_LIBRARIES}
)
add_document(usv_twist_sensor_plugin)
@hakuturu583
hakuturu583 / file1.txt
Created March 3, 2018 15:18
Maritime RobotX Challenge公式シミュレータのセットアップ ref: https://qiita.com/hakuturu583/items/08cddea28c25cda6ca64
vmrc/robotx_gazebo/CMakeFiles/robotx_gazebo_generate_messages_java_gradle.dir/build.make:63: ターゲット 'vmrc/robotx_gazebo/java/robotx_gazebo/build.gradle' のレシピで失敗しました
make[2]: *** [vmrc/robotx_gazebo/java/robotx_gazebo/build.gradle] エラー 1
CMakeFiles/Makefile2:4866: ターゲット 'vmrc/robotx_gazebo/CMakeFiles/robotx_gazebo_generate_messages_java_gradle.dir/all' のレシピで失敗しました
make[1]: *** [vmrc/robotx_gazebo/CMakeFiles/robotx_gazebo_generate_messages_java_gradle.dir/all] エラー 2
make[1]: *** 未完了のジョブを待っています....