[Documentation] [TitleIndex] [WordIndex

Only released in EOL distros:  

brown_drivers: irobot_create_2_1

Package Summary

irobot_create_2_1 is a ROS driver for the iRobot iCreate.

brown_drivers: irobot_create_2_1

Package Summary

irobot_create_2_1 is a ROS driver for the iRobot iCreate.

brown_drivers: irobot_create_2_1

Package Summary

irobot_create_2_1 is a ROS driver for the iRobot iCreate.

brown_drivers: irobot_create_2_1

Package Summary

irobot_create_2_1 is a ROS driver for the iRobot iCreate.

The Brown ROS Create Driver

Dependencies

The only external dependency of the driver is python-serial.

Making

Provided the external dependencies are satisfied:

rosmake irobot_create_2_1

should work properly.

Running

In its own terminal you will need to run roscore:

roscore

You can then run the create driver via:

rosrun irobot_create_2_1 driver.py

The node will assume the robot is attached to /dev/ttyUSB0 if it is not:

rosparam set /brown/irobot_create_2_1/port PORT

or an equivalent should be executed prior to running the driver, where PORT is the port to which the robot is actually attached.

Additionally, you can check ROS/Create functionality by running:

rosrun irobot_create_2_1 bumpGo.py

while also running the driver. This will run a primitive bump and go program using the ROS driver. bumpGo.py is a good place for new ROS users to get started with writing Brown ROS driver based programs.

Messages and Services

Newly proposed, mistyped, or obsolete package. Could not find package "irobot_create_2_1" in rosdoc: /home/rosbot/docs/en/api/irobot_create_2_1/manifest.yaml

The ROS driver provides the following services:

Unless otherwise stated, all of these services return a boolean indicating whether the service call was successful or not.

The driver publishes a single message type, which exports all of the robot's sensory information:

Header header
bool wheeldropCaster
bool wheeldropLeft
bool wheeldropRight
bool bumpLeft
bool bumpRight
bool wall
bool cliffLeft
bool cliffFronLeft
bool cliffFrontRight
bool cliffRight
bool virtualWall
uint8 infraredByte
bool advance
bool play
int16 distance
int16 angle
uint8 chargingState
uint16 voltage
int16 current
int8 batteryTemperature
uint16 batteryCharge
uint16 batteryCapacity
uint16 wallSignal
uint16 cliffLeftSignal
uint16 cliffFrontLeftSignal
uint16 cliffFrontRightSignal
uint16 cliffRightSignal
bool homeBase
bool internalCharger
uint8 songNumber
uint8 songPlaying

All of the fields within the message (with the exception of the header) are equivalent to sensor packets available within the iRobot Create Open Interface. For details about the meaning of the packets, see the iRobot Open Interface documentation.

Some of the services accept a clear parameter. When asserted, along with having the desired motion effect the service call will also reset the current distance and angle tracking.


2022-05-28 12:40