As long as there is enough space for both groups to swim around, it'll work. In overcrowded conditions, the rosy barbs have the tendency to nip but they're generally peaceful by nature and will work well in community setups. One thing to note, rosy barbs usually prefer cooler temperature so I'd keep 78 degrees as the maximum.