Skip to content

Instantly share code, notes, and snippets.

View prrraveen's full-sized avatar

Praveen Yadav prrraveen

View GitHub Profile
@prrraveen
prrraveen / control_manager.cpp
Created July 17, 2015 12:45
‘MyRobot::MyRobot’ names the constructor, not the type
#include <ros/ros.h>
#include "fcm.h"
#include <controller_manager/controller_manager.h>
int main(int argc , char **argv)
{
//setup
ros::init(argc , argv , "my_robot");
MyRobot::MyRobot robot;
namespace ros_control_boilerplate
{
class JoystickManualControl
{
public:
/**
* \brief Constructor
* \param parent_name - name of parent class, only used for namespacing logging debug output
#!/usr/bin/env python
# move_group_python_interface_tutorial.py
## BEGIN_SUB_TUTORIAL imports
##
## To use the python interface to move_group, import the moveit_commander
## module. We also import rospy and some messages that we will use.
import sys
import copy
import rospy
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#
var regi_view = Backbone.View.extend({
el : '#page',
initialize : function()
{
this.render()
this.regi_model = new RegiModel()
this.regi_model.on('invalid',this.on_model_invalid,this)
},
render : function(){
var template = window['JST']['templates/regi.tpl']();
header:
seq: 0
stamp:
secs: 0
nsecs: 0
frame_id: /base_link
joint_names: ['x_joint']
points:
-
positions: [0.0]
@prrraveen
prrraveen / .py
Last active August 29, 2015 14:27
{
'category':{'category_name':'charfield_string'},
'invoice_purchase':{'invoice_name':'charfield_alphanumeric'}, - editable backend-end list [FALANA ,diKDA ]
'item_type':{'item_type_name':'charfield_string'}, -editable backen-end list [{id : 1 , name : 'Shirt' }]
'brand':{'brand_name':'charfield_string'}, -editable backne list [{id : 1 , name : 'Housing'}]
'size_convention':'charfield_string', -editable list [tuple]
'brand_item_size_guide_available':'booleanfield', --checbox editable
'brand_size':'charfield_string', --editable select [(tuple)]
'height_size':'integerfield', -- editable slect [23 , 40 , 50 ,50 ]
'bust_size':'integerfield', -- editable [20 ,30 ,30 ,50]
from django.http import HttpResponse, HttpResponseBadRequest
from django.views.decorators.csrf import csrf_exempt
from django.views.decorators.http import require_GET, require_POST
import pdb
import json
def edit(request):
brand ={
'colors' :[
{ 'id' : 1 , 'value' : 'RED' },
@prrraveen
prrraveen / order_flow.py
Created August 11, 2015 17:08
All the order flow api
def add_user(request):
'''
POST method url : '/user/facebook/add'
@parms : { user: a dict containing user facebook details
}
@Response parms : {status : True/False , message : response text if any}
'''
user = user.create(request.POST['user'])
@csrf_exempt
def save(request):
'''
save the images 1234
get the item
image_key =create image with this item key
update item color and flyrobe size and image forien key
save this item
return the response
'''