Questions tagged [carmen]

Carmen is the name of a Ruby gem providing a repository of geographic regions and of a collection of software from Carnegie Mellon University for controlling mobile robots.

"Carmen" may refer to

Carmen the Ruby gem is a repository of geographic regions for Ruby, designed to make it easy to access country and region data. It also includes replacements for Rails' default country_select and state_select plugins.

CARMEN the toolkit is an open-source collection of software for mobile robot control. CARMEN is modular software designed to provide basic navigation primatives including: base and sensor control, logging, obstacle avoidance, localization, path planning, and mapping.

35 questions
7
votes
2 answers

carmen_rails country_select wrong number of arguments (3 for 0)

Trying to get carmen_rails up and running to add country and subregion(state) to my home-rolled user registration and came across an issue I'm having w/ little help from any online searches (at least from what I can find). Installed gem…
Andrew Stroup
  • 320
  • 2
  • 14
4
votes
1 answer

Why is carmen-rails not defaulting the saved state?

I am using carmen-rails for state dropdown. The state drop down dynamically updates when country is updated but on edit page, the state drop down is not defaulting to the saved state value. Can anyone help? FYI - I am passing the saved state value…
Pykih
  • 2,769
  • 3
  • 29
  • 38
4
votes
1 answer

Carmen Robotics

I have been working with Carmen http://carmen.sourceforge.net/ for a while now, and I really like the software but I need to make some changes inside the source code. I am therefore interesting in some students reports/projects there have been…
nesmoht
  • 125
  • 8
4
votes
2 answers

Rails Carmen get Country name and State name from code

I am using the Carmen gem to render a country select in Rails. The country is stored as Code in the database. How can I get the "Full name" back from this code? gem 'carmen-rails', '~> 1.0.0.beta3' <%= f.country_select :country, prompt: 'Please…
Maier Moritz
  • 77
  • 2
  • 7
3
votes
1 answer

Ruby carmen 'NameError'

I am using the carmen gem and following the instructions there. When I execute these statements: require 'carmen' include Carmen us = Country.named('United States') I get a NameError: uninitialized constant Country even though I have required…
0xSina
  • 20,973
  • 34
  • 136
  • 253
2
votes
1 answer

Rails 4 using Carmen gem cannot convert country name in query

i am using the carmen gem to store the country as their country code like for United states it is US . but when i retrieve the country in the view i retrieve it as their full name i have a model user and account class User < ActiveRecord::Base …
user4965201
  • 973
  • 1
  • 11
  • 25
2
votes
3 answers

Add custom country to Carmen

For my Ruby on Rails application, I have the Carmen gem installed in order to access country data and auto create country fields (for example in the mailing address field for the user). However, for the purposes of this application, Puerto Rico…
Scott Wilton
  • 253
  • 4
  • 11
2
votes
1 answer

Rails carmen-rails gem, find subregion name by subregion code

am using carmen rails gem for to select country and subregion. after implemented database saving the country code and subregion code.I can get the country name from code using this @country_name = Carmen::Country.coded(country_code)Now i want to get…
2
votes
2 answers

Ruby on Rails - Carmen gem: undefined method `country_select' for #

I'm pulling my hair out with this one. I've tried installing the Carmen gem, then uninstalling it and trying this as a plugin, then uninstalling the plugin and re-installing the gem, restarting the server but nothing seems to help. Doesn't matter…
purplerice
  • 473
  • 1
  • 6
  • 22
1
vote
1 answer

Is there a tool to convert RawLog to Carmen?

MRPT offers a tool to convert robotics log file from Carmen to RawLog. I need to convert the other way around from RawLog to Carmen but I don't seem to be able to find such a tool. Please, can you help me with that ? Thanks.
lounice
  • 39
  • 8
1
vote
1 answer

Carmen Gem giving special characters

I am using Carmen gem to get countries and respective states.but, when I use Carmen::Country.named("Sri Lanka").subregions.collect{|p| p.name}, I am getting this array: ["Basnāhira paḷāta", "Madhyama paḷāta", "Dakuṇu paḷāta", "Uturu paḷāta", …
saibharath
  • 63
  • 5
1
vote
3 answers

Carmen-rails - Issue with rails 4

I have been following this to set up state/country drop downs for my rails application but notice that I'm getting the following error: Started GET "/jobs/subregion_options?parent_region=BR" for 127.0.0.1 at 2013-12-13 21:01:09 +0000 Processing by…
Shaun Frost Duke Jackson
  • 1,256
  • 1
  • 10
  • 22
1
vote
1 answer

translation in carmen-rails gem how to do?

I use carmen-rails gem in my app and i search a solution to translate countries and sub-regions in other language than English but i have no idea, in documentation it's not clear, it just says : Using this library will automatically set Carmen to…
medBouzid
  • 7,484
  • 10
  • 56
  • 86
1
vote
3 answers

rails country select with state subregion in rails4

all. I'm following the carmen-rails documentation, though I'm using rails4, and I can't get the state subregion working when selecting a country. In fact, when leaving the subregion code in place I can't even navigate to the site. I get this…
olveram
  • 15
  • 1
  • 4
1
vote
0 answers

Ajax redirect resulting no route matches with carmen

Hie, i am using carmen gem for country and state listing. my view code is,
<%= f.label :country, :class => 'control-label' %>
<%= f.select :country, Carmen::Country.all.collect{|c| c.name},…
bunty
  • 1,068
  • 6
  • 17
1
2 3