Skip to content

Instantly share code, notes, and snippets.

🐢

Mohmmad Ayman MohmadAyman

🐢
Block or report user

Report or block MohmadAyman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View AES_encryption_python.py
from Crypto.Cipher import AES
from Crypto import Random
data_encrypted = bytearray()
# cast the mutable bytearray() byte_lines to mutable bytes() -> needed for cipher.encrypt()
data = bytes(byte_lines)
data_len = len(data)
zero_pad = (chipher_len - (data_len - chipher_len*(int(data_len / chipher_len)))) % chipher_len
View ros_controller.launch
<?xml version="1.0"?>
<launch>
<!-- Load joint controller configurations from YAML file to parameter server -->
<rosparam file="$(find ur5_moveit_config)/config/ros_controllers.yaml" command="load"/>
<!-- Load the controllers -->
<node name="controller_spawner" pkg="controller_manager" type="spawner" respawn="false"
output="screen" ns="ur5" args="g1_controller g2_controller g3_controller new_controller "/>
View ros_controllers.yaml
ur5:
# MoveIt-specific simulation settings
moveit_sim_hw_interface:
joint_model_group: controllers_initial_group_
joint_model_group_pose: controllers_initial_pose_
# Settings for ros_control control loop
generic_hw_control_loop:
loop_hz: 300
cycle_time_error_threshold: 0.01
# Settings for ros_control hardware interface
View gazebo.launch
<?xml version="1.0"?>
<launch>
<arg name="limited" default="false"/>
<arg name="paused" default="false"/>
<arg name="gui" default="true"/>
<!-- startup simulated world -->
<include file="$(find gazebo_ros)/launch/empty_world.launch">
<arg name="world_name" default="worlds/empty.world"/>
<arg name="paused" value="$(arg paused)"/>
View ros_controller.yaml
# MoveIt-specific simulation settings
moveit_sim_hw_interface:
joint_model_group: manipulator
joint_model_group_pose: up
cycle_time_error_threshold: 0.01
# Settings for ros_control control loop
generic_hw_control_loop:
loop_hz: 300
cycle_time_error_threshold: 0.01
# Settings for ros_control hardware interface
View ros_controller.yaml
# Settings for ros_control control loop
generic_hw_control_loop:
loop_hz: 300
cycle_time_error_threshold: 0.01 # Settings for ros_control hardware interface
---
hardware_interface:
groups:
- name: right_arm_controller
joints:
- r_shoulder_pan_joint
View ros_controller.yaml
# Settings for ros_control control loop
generic_hw_control_loop:
loop_hz: 300
cycle_time_error_threshold: 0.01
---
# Settings for ros_control hardware interface
hardware_interface:
joints:
- r_shoulder_pan_joint
- r_shoulder_lift_joint
View sevien.cc
#include <iostream>
#include <stdint.h>
#include<math.h>
#include <bits/stdc++.h>
using namespace std;
int arr[100000];
// primes
View DAAD posts and links
View parse_joints.js
// // sdfObj is always undefined, the XML parser doesn't work while testing
// // while it does work during normal usage.
// // this to enable joint visuals in sdfviewer mode
if (sdfObj.model.joint)
{
var joint_id = 99;
for (var i = 0, l = sdfObj.model.joint.length; i < l; i++) {
var joint = sdfObj.model.joint[i];
if (joint.pose !== undefined && joint.axis.xyz !== undefined)
You can’t perform that action at this time.