-
2018-06-23 15:27:16 DinnerHowe 阅读数 4875
-
-
ROS机器人开发仿真教程
本课程是关于ROS机器人开发的教程,讲解了ROS开发的基本概念,演示了基础代码的编写,让大家尽快上手。另外,课程还讲解了仿真机器人的模型、观察和控制。目的是用尽量短的时间让大家掌握ROS开发的流程。
个人比较喜欢gedit,在从ubuntu转到MAC以后尝试安装了一下。以下是安装步骤:
1. 去官网下载DMG包https://gedit.en.softonic.com/mac,官方DMG的版本是2.30.2,gedit-2.30.2.dmg
2. 下载完毕以后安装。如果喜欢已命令行方式执行可以使用以下方法:
a. 跳转到根目录
cd ~
b. 打开环境配置文件 ,如果没有该文件先执行
touch .bash_profile open -e .bash_profile
c. 看到编辑窗口以后在其中加入如下行
alias gedit="sudo open -a gedit"
d. 更新环境配置文件
source .bash_profile
f. 完成以后即可以在命令行中使用 如:
gedit a.txt
PS
:如果
source .bash_profile
以后无法在命令行
中执行gedit请尝试注销用户再登入,或者重启机器。如果出现
打不开“gedit”,因为它来自身份不明的开发者。
的问题:参考https://jingyan.baidu.com/article/f71d60377960651ab741d140.html
-
-
2016-11-18 02:15:29 killerpro 阅读数 1167
-
-
ROS机器人开发仿真教程
本课程是关于ROS机器人开发的教程,讲解了ROS开发的基本概念,演示了基础代码的编写,让大家尽快上手。另外,课程还讲解了仿真机器人的模型、观察和控制。目的是用尽量短的时间让大家掌握ROS开发的流程。
/Users/sandwich brew install --HEAD --with-bluray-support --with-libdvdread --with-little-cms2 --with-lua --with-bundle mpv ==> Using the sandbox ==> Cloning https://github.com/mpv-player/mpv.git Updating /Users/sandwich/Library/Caches/Homebrew/mpv--git ==> Checking out branch master ==> ./bootstrap.py ==> python3 waf configure --prefix=/usr/local/Cellar/mpv/HEAD-6250007_2 --enable ==> python3 waf install ==> python3 TOOLS/osxbundle.py build/mpv ==> Caveats zsh completion has been installed to: /usr/local/share/zsh/site-functions .app bundles were installed. Run `brew linkapps mpv` to symlink these to /Applications. ==> Summary /usr/local/Cellar/mpv/HEAD-6250007_2: 59 files, 31.5M, built in 56 seconds /Users/sandwich brew linkapps mpv Linking: /usr/local/opt/mpv/mpv.app Linked 1 app to /Applications
安装参考:
http://bbs.feng.com/read-htm-tid-9633783-page-1.html
https://github.com/mrcotter/mrcotter_dotfiles -
-
2017-08-04 12:45:15 Inke88 阅读数 5922
-
-
ROS机器人开发仿真教程
本课程是关于ROS机器人开发的教程,讲解了ROS开发的基本概念,演示了基础代码的编写,让大家尽快上手。另外,课程还讲解了仿真机器人的模型、观察和控制。目的是用尽量短的时间让大家掌握ROS开发的流程。
Mac 使用 80 端口
更新日志:
20170807 更新mac使用80端口的错误问题。[ ] 方案一:
Mac OS X 因为要绑定80端口需要ROOT权限, 但是如果用root权限启动eclipse或tomcat又会造成, 启动创建的各类文件是root的,普通用户无法删除,放弃。[x] 方案二:
通过pfctl做网络层的端口转发, 让连接到本机80端口的请求,都转发到8080端口;采纳
注意, Mac OS 会使用80端口做网络文件共享,要先关闭掉。
一、修改/etc/pf.conf
先对pf.conf进行备份:
sudo cp /etc/pf.conf /etc/pf.conf.normal.bak
之后在该文件中以下行:
sudo vim /etc/pf.conf
rdr-anchor "com.apple/*"
后面添加一行配置,如下:rdr on lo0 inet proto tcp from any to 127.0.0.1 port 80 -> 127.0.0.1 port 8080
注意:
lo0
通过ifconfig
看自己那个设备绑定的是127.0.0.1
,lo0
是这个网络设备的名字,一般大家都是lo0
。如图:
二、依次执行以下命令:
sudo pfctl -d sudo pfctl -f /etc/pf.conf sudo pfctl -e
注意:如果有apache等服务器占用了80端口,则需要将其停掉方能成功!
如果出现
No ALTQ support in kernel ALTQ related functions disabled pfctl: pf not enabled
忽略即可。
问题一:getsockopt: connection refused
2017/08/07 18:47:52 [E] [proxy.go:332] [sell] connect to local service [127.0.0.1:80] error: dial tcp 127.0.0.1:80: getsockopt: connection refused
上面我们配置
pfctl
转发到8080端口,当时有效,但因为重启电脑后,pfctl
的配置又变回之前了,需要配置在开机启动的配置文件中。
注:开机启动需要编辑文件/System/Library/LaunchDaemons/com.apple.pfctl.plist
<string>pfctl</string> <string>-e</string> <string>-f</string> <string>/etc/pf.conf</string>
10.11
以上系统因为增强了安全模式,导致/System/Library/LaunchDaemons/com.apple.pfctl.plist
修改失败,请重启至安全模式在进行操作。参考自:
https://toutiao.io/posts/d7ljnp/preview
http://blog.csdn.net/thc1987/article/details/53606603
http://blog.csdn.net/ilovesmj/article/details/51549119
http://www.cnblogs.com/fullstack-yang/p/6223960.html -
-
原 MAC间文件传输2018-02-04 21:53:22 zgjllf1011 阅读数 8330
-
-
ROS机器人开发仿真教程
本课程是关于ROS机器人开发的教程,讲解了ROS开发的基本概念,演示了基础代码的编写,让大家尽快上手。另外,课程还讲解了仿真机器人的模型、观察和控制。目的是用尽量短的时间让大家掌握ROS开发的流程。
最近新换了一个Mac,需要吧旧的Mac 上的文件传到新的Mac上,但是手里没有U盘,所以只能想其他办法。由于是在同一个局域网下,所以我们可以使用终端的远程连接来进行文件传输。
首先要先对两台mac进行共享设置:进入系统偏好设置,选择共享,启用远程登陆:
然后打开终端,输入命令连接一下目标设备看一下是否能连接成功:
ssh liufeng@192.168.1.104
如果第一次连接会出一个提示,询问是否连接,直接输入yes即可,如果设置正确,就可以看到已经正常登陆了目标设备。然后就可以使用linux命令来传输文件了,命令格式:
src file_source file_target
如果是文件夹,在src后加上-r即可。
这里因为我已经登陆了目标电脑,而且是从目标电脑下载文件夹到本地,所以我的命是这样的:
接下来就会开始下载了,下载过程中我们可以看到下载进度、下载速度,用时等信息,然后我们只要等待下载结束就可以了。
-
-
2016-11-14 13:48:39 baobao3456810 阅读数 2344
-
-
ROS机器人开发仿真教程
本课程是关于ROS机器人开发的教程,讲解了ROS开发的基本概念,演示了基础代码的编写,让大家尽快上手。另外,课程还讲解了仿真机器人的模型、观察和控制。目的是用尽量短的时间让大家掌握ROS开发的流程。
MAC install torch
参考:
官网:http://torch.ch/docs/getting-started.html
Debug:http://stackoverflow.com/questions/29584422/installing-torch7-ipython-installation-error-mac过程:
# in a terminal, run the commands WITHOUT sudo git clone https://github.com/torch/distro.git ~/torch --recursive cd ~/torch; bash install-deps; ./install.sh
报错:
Not updating your shell profile. You might want to add the following lines to your shell profile: . /Users/***/torch/install/bin/torch-activate
解决(其中*** 表示你的用户名):
cd /Users/*** vim .profile insert . /Users/***/torch/install/bin/torch-activate :wq source .profile
运行:
$ th ______ __ | Torch7 /_ __/__ ________/ / | Scientific computing for Lua. / / / _ \/ __/ __/ _ \ | Type ? for help /_/ \___/_/ \__/_//_/ | https://github.com/torch | http://torch.ch th>
work!!!
-

os上安装ros 在mac 相关内容

os上安装ros 在mac 相关内容

os上安装ros 在mac 相关内容

os上安装ros 在mac 相关内容

os上安装ros 在mac 相关内容
-
阅读数 1702
博文 来自: wiseuc_jianghai -
阅读数 11888
博文 来自: lonelymanontheway -
阅读数 2878
-
阅读数 20862
博文 来自: sakulafly -
阅读数 17659
博文 来自: erwin2012