摘要:
了解下include、include_once、require和require_once这4个函数: include函数:会将指定的文件读入并且执行里面的程序; require函数:会将目标文件的内容读入,并且把自己本身代换成这些读入的内容; include_once 函数:在脚本执行期间包含并运行
阅读全文
posted @ 2019-07-14 16:13
anobscureretreat
阅读(324)
推荐(0)
摘要:
sudo apachectl start sudo apachectl stop sudo apachectl restart
阅读全文
posted @ 2019-07-14 15:51
anobscureretreat
阅读(193)
推荐(0)
摘要:
https://www.cnblogs.com/wilwei/p/10244774.html
阅读全文
posted @ 2019-07-14 15:09
anobscureretreat
阅读(2132)
推荐(0)
摘要:
https://www.jianshu.com/p/b0cca588f14d
阅读全文
posted @ 2019-07-14 14:59
anobscureretreat
阅读(1161)
推荐(0)
摘要:
重新安装PHP 安装php7.1 会提示安装在哪里 点击配置 配置cgi,将/usr/local/opt/php@7.1/bin 粘贴到下方输入框中,就会自动补全 新建文件,在PHPstorm 中打开 如图 结果 参考: https://www.jianshu.com/p/abea83253671
阅读全文
posted @ 2019-07-14 14:24
anobscureretreat
阅读(892)
推荐(0)
摘要:
http://tool.chinaz.com/tools/unicode.aspx
阅读全文
posted @ 2019-07-14 13:31
anobscureretreat
阅读(213)
推荐(0)
摘要:
https://xdebug.org/download.php
阅读全文
posted @ 2019-07-14 13:30
anobscureretreat
阅读(417)
推荐(0)
摘要:
https://php.net/manual/en/configuration.file.php
阅读全文
posted @ 2019-07-14 11:04
anobscureretreat
阅读(120)
推荐(0)
摘要:
打开php.ini配置文件,找到extension=php_pdo.dll 和 extension=php_pdo_mysql.dll ,去掉前面“;”的注释,修改后的两行配置内容如下: extension=php_pdo.dllextension=php_pdo_mysql.dll https:/
阅读全文
posted @ 2019-07-14 11:01
anobscureretreat
阅读(1245)
推荐(0)
摘要:
cd /etc sudo cp php.ini.default php.ini
阅读全文
posted @ 2019-07-14 10:59
anobscureretreat
阅读(170)
推荐(0)
摘要:
我们将下载的phpmyadmin 放在apache目录中,进入phpmyadmin目录, 首先将这个目录中的配置文件改名 然后修改config.inc.php,将 改为 刷新网页 然后使用mysql 的用户名以及密码登陆即可。 参考: https://blog.csdn.net/elesos/art
阅读全文
posted @ 2019-07-14 02:16
anobscureretreat
阅读(553)
推荐(0)
摘要:
下载 https://dev.mysql.com/downloads/mysql/5.7.html#downloads 下一步,经过一系列安装步骤后,会跳出一个这样的界面,请注意!!! 上面红框中是你的初始MySQL密码,请一定要记住!! 安装完成后,点击苹果图标,然后点击系统偏好设置,在打开的窗口
阅读全文
posted @ 2019-07-14 01:54
anobscureretreat
阅读(2475)
推荐(0)
摘要:
mac 下自带apache apache 管理 启动后,在浏览器中输入localhost,如果出现如下默认的“It works!”界面,则表示Apache开启成功。 自带PHP 开启PHP,需要修改Apache配置文件,方法如下 将以下内容取消注释 Mac下Apache的默认文件夹为/Library
阅读全文
posted @ 2019-07-14 00:48
anobscureretreat
阅读(421)
推荐(0)
摘要:
链接:https://pan.baidu.com/s/10x0Oa24aOZHJYCYgUGe8yg 密码:muah 安装完成后, 添加以下内容到hosts 启动app,输入激活码 或者
阅读全文
posted @ 2019-07-13 23:55
anobscureretreat
阅读(1111)
推荐(0)
摘要:
首先添加以下内容到c:\windows\system32\drivers\etc\hosts 文件 第一种方法,直接下载破解版,里面有破解方法 链接:https://pan.baidu.com/s/1pqYbA1ykOcxYVPpSxK2slg 提取码:bfbg 第二种方法 打开http://ide
阅读全文
posted @ 2019-07-13 22:43
anobscureretreat
阅读(7777)
推荐(0)
摘要:
频率:60hz header: seq: 13751034 stamp: secs: 1562558441 nsecs: 77637449 frame_id: imuorientation: x: -0.00530699081719 y: 0.00178255140781 z: -0.1336126
阅读全文
posted @ 2019-07-12 23:09
anobscureretreat
阅读(321)
推荐(0)
摘要:
demo1 demo2 demo3 参考:https://www.cnblogs.com/wongbingming/p/9028851.htmlhttps://www.runoob.com/python/python-multithreading.html
阅读全文
posted @ 2019-07-12 23:08
anobscureretreat
阅读(220)
推荐(0)
摘要:
t=Thread(target=func) # 启动子线程t.start() # 阻塞子线程,待子线程结束后,再往下执行t.join() # 判断线程是否在执行状态,在执行返回True,否则返回Falset.is_alive()t.isAlive() # 设置线程是否随主线程退出而退出,默认为Fal
阅读全文
posted @ 2019-07-12 23:06
anobscureretreat
阅读(327)
推荐(0)
摘要:
win7/win8/win10系统下Visual Studio 2013各个版本的密钥: Visual Studio Ultimate 2013 KEY:BWG7X-J98B3-W34RT-33B3R-JVYW9 Visual Studio Premium 2013 KEY:FBJVC-3CMTX-
阅读全文
posted @ 2019-07-11 21:17
anobscureretreat
阅读(6792)
推荐(1)
摘要:
import numpy as np a = np.array([[1,2],[3,4]]) sumo = np.sum(a,axis=0) suml = np.sum(a,axis=O) print(sumo) print(suml)
阅读全文
posted @ 2019-07-11 01:06
anobscureretreat
阅读(1156)
推荐(0)
摘要:
#查看topic频率rostopic hz /xxx_imu_driver/imu #查看topic信息rostopic info /xxx_imu_driver/imu #查看topic数据rostopic echo /xxx_imu_driver/imu
阅读全文
posted @ 2019-07-11 00:06
anobscureretreat
阅读(771)
推荐(0)
摘要:
modf() 分别取整数部分和小数部分 math模块函数import mathn = 3.75print(math.modf(n))>>> (0.75, 3.0)n = 3.25print(math.modf(n))>>> (0.25, 3.0)n = 4.2print(math.modf(n))(
阅读全文
posted @ 2019-07-11 00:05
anobscureretreat
阅读(1829)
推荐(0)
摘要:
#字典创建>>> dict2 = { 'abc': 123, 98.6: 37 }>>> dict2[98.6]37>>> dict2["abc"]123 键必须不可变,所以可以用数字,字符串或元组充当,用列表就不行#!/usr/bin/pythondict = {['Name']: 'Zara',
阅读全文
posted @ 2019-07-11 00:04
anobscureretreat
阅读(565)
推荐(0)
摘要:
>>>def square(x) : # 计算平方数 ... return x ** 2 ... >>> map(square, [1,2,3,4,5]) # 计算列表各个元素的平方 [1, 4, 9, 16, 25] >>> map(lambda x: x ** 2, [1, 2, 3, 4, 5]) # 使用 lambda 匿名函数 [1, 4, 9...
阅读全文
posted @ 2019-07-11 00:03
anobscureretreat
阅读(466)
推荐(0)
摘要:
#!/usr/bin/env python # -*- coding: utf-8 -*- import rospy import math from sensor_msgs.msg import Imu from geometry_msgs.msg import Pose, Quaternion,PoseWithCovarianceStamped import PyKDL def qua...
阅读全文
posted @ 2019-07-09 21:36
anobscureretreat
阅读(3409)
推荐(0)
posted @ 2019-07-09 21:32
anobscureretreat
阅读(1820)
推荐(0)
摘要:
#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- import rospy import time from common_msgs.msg import alarminfo def talker(): rospy.init_node('NetWorking', anonymous=True) networking_moni...
阅读全文
posted @ 2019-07-09 21:30
anobscureretreat
阅读(413)
推荐(0)
摘要:
#! /usr/bin/python import PyKDL import rospy from sensor_msgs.msg import Imu from nav_msgs.msg import Odometry from geometry_msgs.msg import Twist from math import * import threading import os imp...
阅读全文
posted @ 2019-07-09 21:26
anobscureretreat
阅读(2963)
推荐(0)
摘要:
import mathmath.asin(x) x : -1 到 1 之间的数值。如果 x 是大于 1,会产生一个错误。 #!/usr/bin/pythonimport math print "asin(0.64) : ", math.asin(0.64)print "asin(0) : ", ma
阅读全文
posted @ 2019-07-09 19:11
anobscureretreat
阅读(361)
推荐(0)
摘要:
sudo apt-get install ros-indigo-kdl-parser-py http://debian.2.n7.nabble.com/Bug-913803-python3-pykdl-PyKDL-fails-to-import-tp4418454.htmlhttps://githu
阅读全文
posted @ 2019-07-09 19:09
anobscureretreat
阅读(1333)
推荐(0)
摘要:
#coding=utf-8 import matplotlib.pyplot as pltx_data = ['2011','2012','2013','2014','2015','2016','2017']y_data = [58000,60200,63000,71000,84000,90500,
阅读全文
posted @ 2019-07-09 16:19
anobscureretreat
阅读(389)
推荐(0)
摘要:
Quaternion.Euler(x,y,z)返回一个绕x轴旋转x度再绕y轴旋转y度再绕z轴旋转z度的Quaternion,因此Quaternion.Euler(0,90,0)返回一个绕y轴旋转90度的旋转操作. Quaternion作用于Vector3的右乘操作(*)返回一个将向量做旋转操作后的向
阅读全文
posted @ 2019-07-09 16:16
anobscureretreat
阅读(919)
推荐(0)
摘要:
#!/usr/bin/env python import numpy as npfrom geometry_msgs.msg import Pose, Point, Quaternion, Twistfrom tf.transformations import quaternion_from_eul
阅读全文
posted @ 2019-07-09 16:15
anobscureretreat
阅读(709)
推荐(0)
摘要:
import sysimport math w = -0.99114048481x = -0.00530699081719y = 0.00178255140781z = -0.133612662554 r = math.atan2(2*(w*x+y*z),1-2*(x*x+y*y))p = math
阅读全文
posted @ 2019-07-09 16:06
anobscureretreat
阅读(2666)
推荐(0)
摘要:
#场景 ros环境搭建,批量生产后,无法手动安装环境,需要打包整个镜像,才能节省安装环境的时间,以下是一种解决方案,打包系统生成ISO镜像,然后通过启动盘安装即可。 #github https://github.com/mutse/remastersys #安装sudo add-apt-reposi
阅读全文
posted @ 2019-07-07 21:05
anobscureretreat
阅读(361)
推荐(0)
摘要:
cd cere-solvermkdir buildcd buildcmake ..sudo makesudo make install 卸载通过以上方式源码安装的库 再次进入buildsudo make uninstall
阅读全文
posted @ 2019-07-05 12:38
anobscureretreat
阅读(1316)
推荐(0)
摘要:
sudo apt-get install libbullet-dev sudo apt-get install ros-indigo-bfl sudo apt-get install libsdl-dev sudo apt-get install libsdl-image1.2-dev pip in
阅读全文
posted @ 2019-07-05 01:14
anobscureretreat
阅读(221)
推荐(0)
摘要:
安装依赖(cmake 版本为2.8,我的是自带的)sudo apt-get updatesudo apt-get install -y g++ git google-mock libboost-all-dev libeigen3-dev libgflags-dev libgoogle-glog-de
阅读全文
posted @ 2019-07-05 01:13
anobscureretreat
阅读(299)
推荐(0)
摘要:
https://stackoverflow.com/questions/38605734/mac-cannot-find-eigen3 https://blog.csdn.net/qq_42145185/article/details/80955894 https://blog.csdn.net/q
阅读全文
posted @ 2019-07-05 01:06
anobscureretreat
阅读(1391)
推荐(0)
摘要:
只有系统管理者(root)才有这样的权限#将文件 file1.txt 的拥有者设为 runoob,群体的使用者 runoobgroupchown runoob:runoobgroup file1.txt#将目前目录下的所有文件与子目录的拥有者皆设为 runoob,群体的使用者 runoobgroup
阅读全文
posted @ 2019-07-05 01:06
anobscureretreat
阅读(440)
推荐(0)