ROS Gazebo的几个问题

问题1 找不到JointTrajectoryController,报错如下: Could not load controller, JointTrajectoryController does not exist 解决: 进行安装: sudo apt-get install ros*controller* 问题2 报错: process has died [pid 20978, exit code 255, cmd /opt/ros/melodic/lib/gazebo_ros/gzserver -e ode /home/aditya/catkin_ws/src/my_simulations/world/empty_world.world __name:=gazebo __log:= 解决: killall gzserver killall gzclient 问题3 报错: Error “context mismatch in svga_sampler_view_destroy” running GUI programs on Ubuntu in a VM 解决: $ […]

Microsoft Word的第二页开始加页码脚标,总页数减一

问题 如何从Microsoft Word的第二页开始加页码脚标,Page x of y,这里y是总页数减一。 解决 首先把文档分成两段,设置Section Break,第一页一段,后部分一段。再插入页编码,在Header & Footer菜单下,Link to Previous中去掉Different First Page选项,再删除掉第一页编码。 如何使Page x of y的总页数(y)减一。选中页底页编码,使用ALT+F9切换到编辑公式模式。修改前:{NUMPAGES}, 修改后:={NUMPAGES}-1, 再按Ctrl + F9加上大括号:{={NUMPAGES}-1} Ctrl+F9 gives you a pair of braces for your field (inserts a blank field). Alt+F9 lets you toggle display of field codes so you can edit them 参考 How to start numbering […]

Jetson上设置VNC访问

设置VNC服务器 VNC服务器在Jetson上已经安装,需要开启并设置密码 mkdir -p ~/.config/autostart cp /usr/share/applications/vino-server.desktop ~/.config/autostart/. gsettings set org.gnome.Vino prompt-enabled false gsettings set org.gnome.Vino require-encryption false # Replace thepassword with your desired password gsettings set org.gnome.Vino authentication-methods “[‘vnc’]” gsettings set org.gnome.Vino vnc-password $(echo -n ‘thepassword’|base64) sudo reboot 在Windows上远程访问 Windows机器要与Jetson在同一个局域网里。在VNC客户端输入Jetson的IP,会要求输入密码。 参考 nvidia Jetson setup VNC

在Visual Studio中使用NuGet安装包

小结 在Visual Studio里找不到包,需要使用NuGet来进行安装,两种办法:使用命令行和使用菜单安装。 问题 找不到System.Reactive包。 找不到Microsoft.ReportViewer的包 解决 Tools → NuGet Package Manager → Package Manager Console. 使用Install-Package System.Reactive来安装。 Tools → NuGet Package Manager → Manage NuGet Packages for Solutions… 搜索Microsoft.ReportViewer.Runtime.Common进行安装。 参考 C# .NET Rx- Where is System.Reactive? Microsoft.ReportViewer.Common.v12 Quickstart: Install and use a package in Visual Studio (Windows only)

VS Code整合.net与F#

小结 安装VS Code并安装F#和C#开发环境,达到可以调试代码的目的。 .net安装 安装 dotnet-sdk-6.0,验证dotnet指令可以运行。 验证创建应用 dotnet new console -o MyApp -f net6.0 cd MyApp dotnet run 以上打印Hello, World! F#安装 安装FAKE dotnet tool install fake-cli VS Code扩展 安装VS Code并安装以下几个扩展 – Ionide for F# – .NET Extension Pack – C# for Visual Studio Code 参考 .NET Tutorial – Hello World in 5 minutes Download .NET […]

WordPress的Jetpack插件更新

问题 WordPress的Jetpack插件可以防止恶意攻击和垃圾评论,最近更新需要授权Jetpack访问所在WordPress站点才能运行。但是我的.htaccess限制了特定IP才能访问。 解决 不限制IP访问便可解决: #我先前限制了只有我的公网IP才能登录我的站点。 #allow from 116.87.39.153 allow from all 参考 Fixing Jetpack Connection Issues Getting Started With Jetpack Here’s how to get started with Jetpack.